summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/boost/build_boost.bat10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/boost/build_boost.bat b/tools/boost/build_boost.bat
index 22ffd2b947..50ed7ac3bd 100644
--- a/tools/boost/build_boost.bat
+++ b/tools/boost/build_boost.bat
@@ -7,7 +7,13 @@ if "%p2%" == "" (echo "please specify target msvc compiler by adding '10' for M
call bootstrap.bat
if /i '%1' == '86' (
- b2 --toolset=msvc-%2.0 runtime-link=shared threading=multi link=static architecture=x86 address-model=32
+ call "%VS141COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvars32.bat"
+ pause
+
+ b2 --toolset=msvc-%2.0 runtime-link=shared threading=multi link=static architecture=x86 address-model=32 cxxflags=/Zc:threadSafeInit-
) else if /i '%1' == '64' (
- b2 --toolset=msvc-%2.0 runtime-link=shared threading=multi link=static architecture=x86 address-model=64 --stagedir=stage64
+ call "%VS141COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvars64.bat"
+ pause
+
+ b2 --toolset=msvc-%2.0 runtime-link=shared threading=multi link=static architecture=x86 address-model=64 cxxflags=/Zc:threadSafeInit- --stagedir=stage64
) \ No newline at end of file