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 f13fd95
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,18 @@ 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^

Expand All @@ -113,7 +116,7 @@ if %build_boost% == 1 (
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 f13fd95

Please sign in to comment.