Skip to content

Commit

Permalink
Merge pull request #1 from Enchufa2/master
Browse files Browse the repository at this point in the history
switch to define following RcppCore/Rcpp#1227
  • Loading branch information
david-cortes committed Jul 27, 2022
2 parents 2f43aca + 169194a commit 2b91403
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FLOAT_LIBS = `${R_HOME}/bin${R_ARCH_BIN}/Rscript -e "float:::ldflags(static=Sys.info()[['sysname']] == 'Darwin')"`
CXX_STD = CXX11
PKG_CPPFLAGS = -D_FOR_R @SUPPORTS_RESTRICT@
PKG_CPPFLAGS = -DRCPP_USE_UNWIND_PROTECT -D_FOR_R @SUPPORTS_RESTRICT@
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) @FNE_FLAG@ @FNTP_FLAG@ $(CXX_VISIBILITY)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(BLAS_LIBS) $(FLIBS) $(FLOAT_LIBS)
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FLOAT_LIBS = `${R_HOME}/bin${R_ARCH_BIN}/Rscript -e "float:::ldflags(static=Sys.info()[['sysname']] == 'Darwin')"`
CXX_STD = CXX11
PKG_CPPFLAGS = -D_FOR_R
PKG_CPPFLAGS = -DRCPP_USE_UNWIND_PROTECT -D_FOR_R
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -fno-trapping-math -fno-math-errno
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(BLAS_LIBS) $(FLIBS) $(FLOAT_LIBS)
1 change: 0 additions & 1 deletion src/Rwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <Rcpp.h>
#include <Rcpp/unwindProtect.h>
// [[Rcpp::plugins(cpp11)]]
// [[Rcpp::plugins(unwindProtect)]]
extern "C" {
#include <Rinternals.h>
}
Expand Down

0 comments on commit 2b91403

Please sign in to comment.