From 37e7f30e2f09dc5bd904a0b777147e2203cc3b1a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Dec 2017 23:57:33 +0300 Subject: we need to compile boost with /Zc:threadSafeInit- compiler's option --- tools/boost/build_boost.bat | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools/boost/build_boost.bat') 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 -- cgit v1.2.3