blob: aa59e7c787a80561f7209351d94b52af875e28d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
tmb_name <- "unmarked_TMBExports"
tmb_flags <- commandArgs(trailingOnly = TRUE)
if(file.exists(paste0(tmb_name, ".cpp"))) {
if(length(tmb_flags) == 0) tmb_flags <- ""
TMB::compile(file = paste0(tmb_name, ".cpp"),
#PKG_CXXFLAGS = tmb_flags,
#openmp = TRUE,
safebounds = FALSE, safeunload = FALSE)
file.copy(from = paste0(tmb_name, .Platform$dynlib.ext),
to = "..", overwrite = TRUE)
}
# cleanup done in ../Makevars[.win]
|