Skip to content

Commit 5e05387

Browse files
authored
Merge pull request #101 from RcppCore/bugfix/rtools40-windows
fixes for compilation with Rtools 40
2 parents 213bb3c + c49e9dc commit 5e05387

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Makevars.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ ifeq ($(USE_TBB), Windows)
5656
# compiler: overwrite default (which is cl = MS compiler)
5757
MAKE_ARGS += rtools=true compiler=gcc
5858
ifeq ("$(WIN)", "64")
59-
MAKE_ARGS += arch=intel64
59+
MAKE_ARGS += arch=intel64 runtime=mingw
6060
ARCH_DIR=x64/
6161
else
62-
MAKE_ARGS += arch=ia32
62+
MAKE_ARGS += arch=ia32 runtime=mingw
6363
ARCH_DIR=i386/
6464
endif
6565

src/tbb/build/windows.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949

5050
# A convenience wrapper for calls to detect.js.
5151
# $(1) is the full command line for the script, e.g. /minversion icl 12
52-
detect_js = $(shell $(CMD) "cscript /nologo /E:jscript $(tbb_root)/build/detect.js $(1)")
52+
detect_js = $(shell $(CMD) "cscript //NoLogo //E:jscript $(tbb_root)/build/detect.js $(1)")
5353

5454
# TODO give an error if archs doesn't match
5555
ifndef arch
@@ -120,8 +120,8 @@ ifneq ($(filter vc8 vc9,$(runtime)),)
120120
RML.MANIFEST = tbbmanifest.exe.manifest
121121
endif
122122

123-
MAKE_VERSIONS = $(CMD) "cscript /nologo /E:jscript $(subst \,/,$(tbb_root))/build/version_info_windows.js $(CONLY) $(arch) $(subst \,/,$(VERSION_FLAGS))" > version_string.ver
124-
MAKE_TBBVARS = $(CMD) "$(subst /,\,$(tbb_root))\build\generate_tbbvars.bat"
123+
MAKE_VERSIONS = $(shell cscript "//NoLogo" "//E:jscript" "$(subst \,/,$(tbb_root)/build/version_info_windows.js)" "$(subst \,/,$(CONLY))" "$(arch)" "$(subst \,/,$(VERSION_FLAGS))" > version_string.ver)
124+
MAKE_TBBVARS = $(CMD) "$(subst /,\,$(tbb_root)/build/generate_tbbvars.bat)"
125125

126126
TEST_LAUNCHER = $(subst /,\,$(tbb_root))\build\test_launcher.bat $(largs)
127127

0 commit comments

Comments
 (0)