build icon indicating copy to clipboard operation
build copied to clipboard

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

Open qis opened this issue 5 years ago • 1 comments

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.

qis avatar Apr 09 '20 04:04 qis

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.

stale[bot] avatar May 29 '21 18:05 stale[bot]