Skip to content

Commit

Permalink
Include CXX_FLAGS suggestion from RcppParallel author.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Nolan committed Sep 7, 2024
1 parent 0bbf4ff commit ee2c06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: detrendr
Title: Detrend Images
Version: 0.6.15
Version: 0.6.16
Authors@R: c(
person("Rory", "Nolan", , "rorynoolan@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-5239-4043")),
Expand Down
1 change: 1 addition & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
PKG_CXXFLAGS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::CxxFlags()")
1 change: 1 addition & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1
PKG_CXXFLAGS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::CxxFlags()")

PKG_LIBS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \
-e "RcppParallel::RcppParallelLibs()")

0 comments on commit ee2c06f

Please sign in to comment.