Skip to content

Commit f12a3bf

Browse files
committed
use more modern cpp standard where available
1 parent 6e5d8cb commit f12a3bf

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

R/build.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ inlineCxxPlugin <- function() {
2828
}
2929

3030
tbbCxxFlags <- function() {
31-
if (Sys.info()['sysname'] != "SunOS")
32-
flags <- "-Wno-long-long"
33-
else
34-
flags <- ""
31+
flags <- "$(CXX1XSTD)"
3532
if (Sys.info()['sysname'] == "Windows")
3633
flags <- paste(flags, "-DRCPP_PARALLEL_USE_TBB=1")
3734
flags

src/Makevars

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11

2-
PKG_CPPFLAGS += -I../inst/include/
2+
PKG_CPPFLAGS += $(CXX1XSTD) -I../inst/include/
33

44
ifeq ($(OS), Windows_NT)
55

66
USE_TBB=Windows
77
TBB_COPY_PATTERN=tbb*.dll
8-
PKG_CPPFLAGS += -Wno-long-long
98

109
else
1110

@@ -19,8 +18,6 @@ else
1918
endif
2019
ifeq ($(UNAME), SunOS)
2120
USE_TBB=SunOS
22-
else
23-
PKG_CPPFLAGS += -Wno-long-long
2421
endif
2522

2623
endif
@@ -66,9 +63,9 @@ tbb:
6663
mkdir -p ../inst/lib/$(ARCH_DIR); \
6764
cd tbb/src; \
6865
if [[ "$(CC)" == clang* ]]; then \
69-
make compiler=clang $(MAKE_ARGS); \
66+
make cpp0x=1 compiler=clang $(MAKE_ARGS); \
7067
else \
71-
make $(MAKE_ARGS); \
68+
make cpp0x=1 $(MAKE_ARGS); \
7269
fi; \
7370
cd ../..; \
7471
cp tbb/build/lib_release/$(TBB_COPY_PATTERN) ../inst/lib/$(ARCH_DIR)

src/tbb/build/linux.clang.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PIC_KEY = -fPIC
2626
WARNING_AS_ERROR_KEY = -Werror
2727
WARNING_KEY = -Wall
2828
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
29-
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor -Wno-dangling-else -Wno-long-long
29+
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor -Wno-dangling-else
3030
DYLIB_KEY = -shared
3131
EXPORT_KEY = -Wl,--version-script,
3232
LIBDL = -ldl

0 commit comments

Comments
 (0)