Skip to content

Commit 96bc456

Browse files
committed
Update some build options.
1 parent 2f10569 commit 96bc456

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

RcppParallel.Rproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ RnwWeave: Sweave
1313
LaTeX: pdfLaTeX
1414

1515
BuildType: Package
16-
PackageInstallArgs: --with-keep.source
16+
PackageInstallArgs: --with-keep.source --no-multiarch
1717
PackageCheckArgs: --as-cran

src/tbb/build/windows.cl.inc

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ CPLUS = cl /nologo
2828
LINK_FLAGS = /link /nologo
2929
LIB_LINK_FLAGS=/link /nologo /DLL /MAP /DEBUG /fixed:no /INCREMENTAL:NO /DYNAMICBASE /NXCOMPAT
3030

31+
ifneq (,$(stdver))
32+
CXX_STD_FLAGS = /std:$(stdver) /D_TBB_CPP0X
33+
endif
34+
3135
ifeq ($(arch), ia32)
32-
LIB_LINK_FLAGS += /SAFESEH
36+
LIB_LINK_FLAGS += /SAFESEH
3337
endif
3438

3539
ifeq ($(runtime), vc_mt)
36-
MS_CRT_KEY = /MT$(if $(findstring debug,$(cfg)),d)
40+
MS_CRT_KEY = /MT$(if $(findstring debug,$(cfg)),d)
3741
else
38-
MS_CRT_KEY = /MD$(if $(findstring debug,$(cfg)),d)
42+
MS_CRT_KEY = /MD$(if $(findstring debug,$(cfg)),d)
3943
endif
4044
EH_FLAGS = /EHsc /GR
4145

@@ -67,6 +71,7 @@ DEFINE_KEY = /D
6771
OUTPUT_KEY = /Fe
6872
OUTPUTOBJ_KEY = /Fo
6973
WARNING_AS_ERROR_KEY = /WX
74+
BIGOBJ_KEY = /bigobj
7075

7176
ifeq ($(runtime),vc7.1)
7277
WARNING_KEY = /W3
@@ -91,9 +96,15 @@ ifeq (ok,$(call detect_js,/minversion cl 17))
9196
CPLUS_FLAGS += /volatile:iso
9297
endif
9398

99+
# Since VS2013, VC++ uses the same .pdb file for different sources so we need
100+
# to add /FS (Force Synchronous PDB Writes)
101+
ifeq (ok,$(call detect_js,/minversion cl 18))
102+
CPLUS_FLAGS += /FS
103+
endif
104+
94105
CPLUS_FLAGS += /DUSE_WINTHREAD /D_CRT_SECURE_NO_DEPRECATE \
95106
/D_WIN32_WINNT=$(_WIN32_WINNT)
96-
C_FLAGS = $(CPLUS_FLAGS)
107+
C_FLAGS = $(subst $(EH_FLAGS),,$(CPLUS_FLAGS))
97108

98109
#------------------------------------------------------------------------------
99110
# End of setting compiler flags.
@@ -127,11 +138,7 @@ endif
127138
#------------------------------------------------------------------------------
128139
# Setting tbbmalloc data.
129140
#------------------------------------------------------------------------------
130-
ifneq ($(target_ui), win8ui)
131-
M_CPLUS_FLAGS = $(subst $(EH_FLAGS),/EHs-,$(CPLUS_FLAGS))
132-
else
133141
M_CPLUS_FLAGS = $(CPLUS_FLAGS)
134-
endif
135142
#------------------------------------------------------------------------------
136143
# End of setting tbbmalloc data.
137144
#------------------------------------------------------------------------------

src/tbb/build/windows.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ASMEXT = asm
7878
def_prefix = $(if $(findstring intel64,$(arch)),win64,win32)
7979

8080
# Target Windows version. Do not increase beyond 0x0502 without prior discussion!
81-
# Used as the value for macro definition opiton in windows.cl.inc etc.
81+
# Used as the value for macro definition option in windows.cl.inc etc.
8282
# For tests, we need at least Windows XP SP2 for sake of enabling stack backtraces.
8383
_WIN32_WINNT=0x0502
8484

@@ -124,3 +124,6 @@ MAKE_VERSIONS = $(CMD) cscript /nologo /E:jscript $(subst \,/,$(tbb_root))/build
124124
MAKE_TBBVARS = $(CMD) "$(subst /,\,$(tbb_root))\build\generate_tbbvars.bat"
125125

126126
TEST_LAUNCHER = $(subst /,\,$(tbb_root))\build\test_launcher.bat $(largs)
127+
128+
OPENCL.LIB = OpenCL.$(LIBEXT)
129+

0 commit comments

Comments
 (0)