We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 988229b commit 952a9bcCopy full SHA for 952a9bc
src/Makevars
@@ -62,8 +62,6 @@ 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
@@ -72,9 +70,9 @@ all: tbb $(SHLIB)
72
70
tbb:
73
71
mkdir -p ../inst/lib/$(ARCH_DIR); \
74
cd tbb/src; \
75
- if [ "$(COMPILER:0:5)" = "clang" ]; then \
+ if [[ "$(CC)" == clang* ]]; then \
76
$(MAKE_CMD) cpp0x=1 compiler=clang $(MAKE_ARGS); \
77
- elif [ "$(COMPILER:0:3)" = "gcc" ]; then \
+ elif [[ "$(CC)" == *gcc* ]]; then \
78
$(MAKE_CMD) cpp0x=1 compiler=gcc $(MAKE_ARGS); \
79
else \
80
$(MAKE_CMD) cpp0x=1 $(MAKE_ARGS); \
0 commit comments