We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb6917 commit 988229bCopy full SHA for 988229b
src/Makevars
@@ -62,6 +62,8 @@ ifeq ($(USE_TBB), SunOS)
62
endif
63
64
65
+COMPILER = $(shell basename $(CC))
66
+
67
.PHONY: all tbb
68
69
# Order is important in Windows' case. See PKG_LIBS above
@@ -70,9 +72,9 @@ all: tbb $(SHLIB)
70
72
tbb:
71
73
mkdir -p ../inst/lib/$(ARCH_DIR); \
74
cd tbb/src; \
- if [[ "$(CC)" == clang* ]]; then \
75
+ if [ "$(COMPILER:0:5)" = "clang" ]; then \
76
$(MAKE_CMD) cpp0x=1 compiler=clang $(MAKE_ARGS); \
- elif [[ "$(CC)" == *gcc* ]]; then \
77
+ elif [ "$(COMPILER:0:3)" = "gcc" ]; then \
78
$(MAKE_CMD) cpp0x=1 compiler=gcc $(MAKE_ARGS); \
79
else \
80
$(MAKE_CMD) cpp0x=1 $(MAKE_ARGS); \
0 commit comments