Skip to content

Commit

Permalink
Updated configure files in order to correct compilation problem in Wi…
Browse files Browse the repository at this point in the history
…n10, and added src/rmot.dll to the gitignore file.
  • Loading branch information
Tess-LaCoil committed Apr 8, 2024
1 parent 9365267 commit 1357339
Show file tree
Hide file tree
Showing 7 changed files with 1,436 additions and 1,525 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ inst/doc
*.o
*.so

# Generated file that winds up too big
src/rmot.dll

# Bugged directory from snapshot package
tests/testthat/_snaps
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
# Generated by rstantools. Do not edit by hand.

"${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()"

# Add configuration needed for big object files
echo "PKG_CXXFLAGS += -Wa,-mbig-obj" >> ./src/Makevars
3 changes: 3 additions & 0 deletions configure.win
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
# Generated by rstantools. Do not edit by hand.

"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"

# Add configuration needed for big object files
echo "PKG_CXXFLAGS += -Wa,-mbig-obj" >> ./src/Makevars.win
11 changes: 11 additions & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Generated by rstantools. Do not edit by hand.

STANHEADERS_SRC = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "message()" -e "cat(system.file('include', 'src', package = 'StanHeaders', mustWork = TRUE))" -e "message()" | grep "StanHeaders")

STANC_FLAGS = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "cat(ifelse(utils::packageVersion('rstan') >= '2.26', '-DUSE_STANC3',''))")
PKG_CPPFLAGS = -I"../inst/include" -I"$(STANHEADERS_SRC)" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DRCPP_PARALLEL_USE_TBB=1 $(STANC_FLAGS) -D_HAS_AUTO_PTR_ETC=0
PKG_CXXFLAGS = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "RcppParallel::CxxFlags()") $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "StanHeaders:::CxxFlags()")
PKG_LIBS = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "RcppParallel::RcppParallelLibs()") $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e "StanHeaders:::LdFlags()")

CXX_STD = CXX17
PKG_CXXFLAGS += -Wa,-mbig-obj
1,286 changes: 623 additions & 663 deletions src/stanExports_constant_multi_ind.h

Large diffs are not rendered by default.

994 changes: 482 additions & 512 deletions src/stanExports_constant_single_ind.h

Large diffs are not rendered by default.

Loading

0 comments on commit 1357339

Please sign in to comment.