Skip to content

Commit 3e2d2df

Browse files
committed
Use -std=c++0x for cpp11 plugin on Windows when R <= 3.0
1 parent b1046c1 commit 3e2d2df

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-06-05 JJ Allaire <[email protected]>
2+
3+
* R/Attributes.R: Use -std=c++0x for cpp11 plugin on Windows when R <= 3.0
4+
15
2014-05-28 Kevin Ushey <[email protected]>
26

37
* inst/include/Rcpp/vector/vector_from_string.h: Protect result of

R/Attributes.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
395395
.plugins[["cpp11"]] <- function() {
396396
if (getRversion() >= "3.1")
397397
list(env = list(USE_CXX1X = "yes"))
398+
else if (.Platform$OS.type == "windows")
399+
list(env = list(PKG_CXXFLAGS = "-std=c++0x"))
398400
else
399401
list(env = list(PKG_CXXFLAGS ="-std=c++11"))
400402
}

0 commit comments

Comments
 (0)