Skip to content

Commit db7b965

Browse files
authored
Merge pull request #21 from andrjohns/rstan-segfaults
Fix segfaults with rstan load
2 parents 01f26f9 + 5c9ceeb commit db7b965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makevars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PKG_CPPFLAGS = -I"../inst/include" -D_REENTRANT
1+
PKG_CPPFLAGS = -I"../inst/include" -D_REENTRANT -DSTAN_THREADS
22
PKG_CPPFLAGS += -DSTRICT_R_HEADERS -D_HAS_AUTO_PTR_ETC=0 -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
33
PKG_CXXFLAGS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::CxxFlags()" | tail -n 1)
44
PKG_LIBS = $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::RcppParallelLibs()" | tail -n 1)

0 commit comments

Comments
 (0)