Skip to content

Instantly share code, notes, and snippets.

@missdeer
Created May 20, 2017 03:53
Show Gist options
  • Save missdeer/b6b59df5f8dbd31297166671eb0b9ab7 to your computer and use it in GitHub Desktop.
Save missdeer/b6b59df5f8dbd31297166671eb0b9ab7 to your computer and use it in GitHub Desktop.
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
set cores=%NUMBER_OF_PROCESSORS%
echo Building boost with %cores% cores
call bootstrap.bat
rem Most libraries can be static libs
b2 -j%cores% toolset=msvc-14.0 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/msvc2015-x64
b2 -j%cores% toolset=msvc-14.0 address-model=32 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/msvc2015-x86
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment