-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B2 fails to use quoted path invocation for the archiver program. #286
Comments
@grafikrobot do you it would be possible to automatically quote variable expansions in |
@Kojoley one option is to have a special kind of expansion, in general, that does quoting, path, etc fixups after/around other expressions/variable. Maybe |
But ultimately.. avoiding using batch/shell invocation entirely by executing the command directly is the real solution. |
@walbourn you say "Via CMake, the toolset variables are set as follows". How are you setting up b2 with those variable? |
Make sure you completed the following tasks
Environment and version details
Brief problem description
I'm working on implementing clang-cl triplets for the VCPKG manager, and encountered an issue unique to boost building. The problem is that I'm attempting to use the built-in Visual Studio version of clang-cl. In this scenario, the b2 tool is properly quoting and fixing-up the compiler and linker paths, but not the librarian paths.
Actual behavior summary
Via CMake, the toolset variables are set as follows:
The B2 summary prints out:
Note that linker and assembler are using quoted. archiver is not.
This results in the following build failure:
The compiler got quoted in the shell execution but the archiver did not.
Expected behavior summary
It looks like when passed in from CMake, the non-native paths are kept, but because the compiler invocation is quoted it works. The archiver needs the same quoting.
The text was updated successfully, but these errors were encountered: