Skip to content

Commit b42cdd0

Browse files
committed
don't set default stdver for newer R
1 parent a1fddba commit b42cdd0

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ inst/doc
1010
revdep
1111
src-i386/
1212
src-x64/
13+
tbb.log

src/Makevars.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ endif
123123
# Order is important in Windows' case. See PKG_LIBS above
124124
all: tbb $(SHLIB)
125125

126-
$(SHLIB): $(OBJECTS) tbb
126+
# TBB needs to be built before our C++ sources are built, so that
127+
# headers are copied and available from the expected locations.
128+
$(OBJECTS): tbb
127129

128130
# NOTE: TBB libraries are installed via install.libs.R.
129131
# However, we need to copy headers here so that they are visible during compilation.
@@ -138,7 +140,7 @@ else
138140
@echo "(tbb) Using bundled TBB library ..."
139141
@mkdir -p ../inst/include
140142
@cp -R tbb/include/* ../inst/include/
141-
@(cd tbb/src && $(MAKE_CMD) stdver=@STDVER@ $(MAKE_ARGS))
143+
@(cd tbb/src && $(MAKE_CMD) @STDVER@ $(MAKE_ARGS))
142144
endif
143145

144146
tbb-clean:

tools/config/configure.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,8 @@ if (Sys.info()[["sysname"]] == "Windows") {
7676
}
7777

7878
# use c++0x for compatibility with older compilers
79-
define(STDVER = "c++0x")
80-
79+
if (getRversion() < "4.0") {
80+
define(STDVER = "stdver=c++0x")
81+
} else {
82+
define(STDVER = "")
83+
}

0 commit comments

Comments
 (0)