Skip to content

Commit b79b508

Browse files
committed
fixup
1 parent b315a03 commit b79b508

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Makevars.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ ifeq ($(USE_TBB), Windows)
106106
endif
107107

108108
# write compiler if set
109-
MAKE_ARGS += $(COMPILER)
109+
ifneq (@COMPILER@, )
110+
MAKE_ARGS += compiler=@COMPILER@
111+
endif
110112

111113
# For Solaris detect if this is 32-bit R on x86 and if so forward that to TBB
112114
ifeq ($(USE_TBB), SunOS)

tools/config/configure.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ if (getRversion() < "4.0") {
8484
}
8585

8686
# on Solaris, check if we're using gcc or g++
87+
define(COMPILER = "")
8788
if (Sys.info()[["sysname"]] == "SunOS") {
8889
cxx <- r_cmd_config("CXX")
8990
version <- system(paste(cxx, "--version"), intern = TRUE)
9091
for (compiler in c("gcc", "g++")) {
9192
if (any(grepl(compiler, version, fixed = TRUE))) {
92-
define(COMPILER = "compiler=gcc")
93+
define(COMPILER = "gcc")
9394
}
9495
}
9596
}
97+

0 commit comments

Comments
 (0)