Skip to content

Commit

Permalink
fix(build.bat): set WINAPI_VERSION for x64
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Feb 21, 2018
1 parent 93bb6ec commit 5a57e29
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,27 @@ set BOOST_COMPILED_LIBS=--with-date_time^
--with-system^
--with-thread

set BJAM_OPTIONS=toolset=%BJAM_TOOLSET%^
set BJAM_OPTIONS_COMMON=toolset=%BJAM_TOOLSET%^
variant=release^
link=static^
threading=multi^
runtime-link=static^
define=BOOST_USE_WINAPI_VERSION=0x0501^
cxxflags="/Zc:threadSafeInit- "

set BJAM_OPTIONS_X64=%BJAM_OPTIONS%^
set BJAM_OPTIONS_X86=%BJAM_OPTIONS_COMMON%^
define=BOOST_USE_WINAPI_VERSION=0x0501

set BJAM_OPTIONS_X64=%BJAM_OPTIONS_COMMON%^
define=BOOST_USE_WINAPI_VERSION=0x0502^
address-model=64^
--stagedir=stage_x64^
--stagedir=stage_x64

if %build_boost% == 1 (
cd /d %BOOST_ROOT%
if not exist bjam.exe call bootstrap.bat
if %ERRORLEVEL% NEQ 0 goto ERROR

bjam %BJAM_OPTIONS% stage %BOOST_COMPILED_LIBS%
bjam %BJAM_OPTIONS_X86% stage %BOOST_COMPILED_LIBS%
if %ERRORLEVEL% NEQ 0 goto ERROR

if %build_boost_x64% == 1 (
Expand Down

0 comments on commit 5a57e29

Please sign in to comment.