build
build copied to clipboard
Absolute MSVC linker path in config has to be double quoted.
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.
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.