Skip to content

Commit dd22b2b

Browse files
committed
only set CXX_STD on Linux and Windows
Was causing compilation failure on R 3.1 >= with pre-Mavericks R toolchains
1 parent bdbd968 commit dd22b2b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Makevars

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
CXX_STD = CXX11
3-
42
PKG_CPPFLAGS += -I../inst/include/
53

64
ifeq ($(OS), Windows_NT)
@@ -10,16 +8,23 @@ ifeq ($(OS), Windows_NT)
108

119
# Extra PATH entry for gcc (required by TBB)
1210
GCC_PATH = $(shell cygpath $(dir $(CC))):
11+
12+
CXX_STD = CXX11
1313

1414
else
1515

1616
UNAME := $(shell uname)
1717
TBB_COPY_PATTERN=libtbb.*
1818
ifeq ($(UNAME), Darwin)
1919
USE_TBB=Mac
20+
# We don't set this on OS X because it caused build failures on
21+
# pre-Mavericks R toolchains (it was originally put in to prevent
22+
# warnings on a Linux toolchain so isn't needed on OS X anyway)
23+
# CXX_STD = CXX11
2024
endif
2125
ifeq ($(UNAME), Linux)
2226
USE_TBB=Linux
27+
CXX_STD = CXX11
2328
endif
2429
# Note: regular MinGW not supported
2530

0 commit comments

Comments
 (0)