Skip to content

Commit 5a57e29

Browse files
committed
fix(build.bat): set WINAPI_VERSION for x64
1 parent 93bb6ec commit 5a57e29

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build.bat

+8-5
Original file line numberDiff line numberDiff line change
@@ -96,24 +96,27 @@ set BOOST_COMPILED_LIBS=--with-date_time^
9696
--with-system^
9797
--with-thread
9898

99-
set BJAM_OPTIONS=toolset=%BJAM_TOOLSET%^
99+
set BJAM_OPTIONS_COMMON=toolset=%BJAM_TOOLSET%^
100100
variant=release^
101101
link=static^
102102
threading=multi^
103103
runtime-link=static^
104-
define=BOOST_USE_WINAPI_VERSION=0x0501^
105104
cxxflags="/Zc:threadSafeInit- "
106105

107-
set BJAM_OPTIONS_X64=%BJAM_OPTIONS%^
106+
set BJAM_OPTIONS_X86=%BJAM_OPTIONS_COMMON%^
107+
define=BOOST_USE_WINAPI_VERSION=0x0501
108+
109+
set BJAM_OPTIONS_X64=%BJAM_OPTIONS_COMMON%^
110+
define=BOOST_USE_WINAPI_VERSION=0x0502^
108111
address-model=64^
109-
--stagedir=stage_x64^
112+
--stagedir=stage_x64
110113

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

116-
bjam %BJAM_OPTIONS% stage %BOOST_COMPILED_LIBS%
119+
bjam %BJAM_OPTIONS_X86% stage %BOOST_COMPILED_LIBS%
117120
if %ERRORLEVEL% NEQ 0 goto ERROR
118121

119122
if %build_boost_x64% == 1 (

0 commit comments

Comments
 (0)