@@ -60,8 +60,7 @@ PKG_CPPFLAGS_env_fun <- function() {
60
60
' -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION ' ,
61
61
' -D_HAS_AUTO_PTR_ETC=0 ' ,
62
62
' -include ' , shQuote(Eigen ), ' ' ,
63
- ifelse (.Platform $ OS.type == " windows" , ' -std=c++1y' ,
64
- ' -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1 ' ),
63
+ ' -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1' ,
65
64
sep = ' ' )
66
65
}
67
66
@@ -121,19 +120,12 @@ rstanplugin <- function() {
121
120
paste0(" -L" , shQuote(RcppParallel_pkg_libs )),
122
121
tbb_libs ,
123
122
utils :: capture.output(RcppParallel :: RcppParallelLibs()))
124
- if (.Platform $ OS.type == " windows" ) {
125
- list (includes = ' // [[Rcpp::plugins(cpp14)]]\n ' ,
126
- body = function (x ) x ,
127
- env = list (PKG_LIBS = PL ,
128
- PKG_CPPFLAGS = paste(Rcpp_plugin $ env $ PKG_CPPFLAGS ,
129
- PKG_CPPFLAGS_env_fun(), collapse = " " )))
130
- } else {
131
- list (includes = ' // [[Rcpp::plugins(cpp14)]]\n ' ,
123
+
124
+ list (includes = ' // [[Rcpp::plugins(cpp17)]]\n ' ,
132
125
body = function (x ) x ,
133
126
env = list (PKG_LIBS = PL ,
134
127
PKG_CPPFLAGS = paste(Rcpp_plugin $ env $ PKG_CPPFLAGS ,
135
128
PKG_CPPFLAGS_env_fun(), collapse = " " )))
136
- }
137
129
}
138
130
139
131
0 commit comments