File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ inst/doc
1010revdep
1111src-i386 /
1212src-x64 /
13+ tbb.log
Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ endif
123123# Order is important in Windows' case. See PKG_LIBS above
124124all: 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.
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))
142144endif
143145
144146tbb-clean:
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments