bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
75 stars 228 forks source link

How to build Boost arm64 on MSVC using b2? #351

Closed QuellaZhang closed 7 months ago

QuellaZhang commented 8 months ago

Hi all,

The MSVC team builds Boost under x86, x64, and arm64 targets to detect compiler regressions. Now I have a question, is there any b2.exe command line argument to specify arm64 target? since we are using VCPKG instead of b2.exe to build arm64 Boost and now we want to unify the commands.

I read the https://github.com/bfgroup/b2/blob/main/src/tools/msvc.jam and https://github.com/bfgroup/b2/pull/208, but didn't find any useful information. Can you help us with what we missed? Thanks!

The commands we use to build Boost x86/amd64: .\b2 headers variant=release --build-dir=x64rel address-model=64 .\b2 variant=release --build-dir=x64rel address-model=64 .\b2 -j16 variant=release --build-dir=x64rel libs\parameter\test address-model=64

The commands we use to build Boost arm64: vcpkg install boost --triplet arm64-windows --clean-after-build

Except: Using b2 to build Boost arm64.

grafikrobot commented 7 months ago

You need to specify both address-model and architecture.. b2 architecture=arm address-model=64 ....