[boost-modular-build-helper] B2 ignores C/CXX/LDFLAGS when toolchain is not MSVC or GCC #11132
Labels
category:port-feature
The issue is with a library, which is requesting new capabilities that didn’t exist
Problem
In
user-config.jam
we have:That said if toolset is not
msvc
we are goingelse
route with toolset set togcc
54.1
. This mostly works but have subtle side effects if compiler we are building with is not in fact GCC. For example, if we are building with Clang thenusing gcc
makes B2 to ignore all the options inusing
block becauseclang
is notgcc
. Thus no compiler/linker options from Vcpkg code and user triplets are passed to build.Proposed solution
user-config.jam
configurable:CMakeLists.txt
map CMake toolchain ID to B2 toolchain ID:I consider also adding
-d 2
tob2
invocation to capture compiler and linker command lines in B2 logs so such kind of issues can be debugged more easly.The text was updated successfully, but these errors were encountered: