boostorg / build

B2 makes it easy to build C++ projects, everywhere.
Boost Software License 1.0
229 stars 46 forks source link

Absolute MSVC linker path in config has to be double quoted. #566

Open qis opened 4 years ago

qis commented 4 years ago

Currently I have to double quote the <linker> setting in a project config file, otherwise msvc.archive commands fail with the error message:

'C:/Program' is not recognized as an internal or external command

Start of the config used in the b2 command line option --project-config=config.jam:

using msvc : 14.2 : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe" :

<linker>"\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/link.exe\""

...

Is this intentional? Sometimes an absolute path is necessary, for example if the linker is replaced by a different version or with lld-link.exe which is not in PATH.

stale[bot] commented 3 years ago

Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2 This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.