Boost logo

Boost-Build :

Subject: Re: [Boost-build] Bjam /b2 unable to parse some file names with spaces correctly
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-02-27 18:32:18


AMDG

On 02/27/2017 11:08 AM, Paul A. Bristow via Boost-build wrote:
> I am baffled (and stuck) by my failure to specify filenames with include spaces correctly.
>
> These specification appears to work as expected
>
> "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe"
>
> "C:\\Program Files\\mingw-w64\\x86_64-5.3.0-win32-seh-rt_v4-rev0\\mingw64\\bin\\g++.exe"
>
> but
>
> "c:\\Program Files\\LLVM\\bin\\clang++.exe"
> <linkflags>-L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10586.0/ucrt/x64"
> <linkflags>"-L"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.10586.0\\ucrt\\x64""
>

  This last one would probably work if you escaped the inner quotes.
The issue here is not really an issue of parsing. Any string
surrounded with "" will be parsed as a single string. The
problem appears because these strings aren't quoted inside the
action block. Failing to quote clang++ is a bug. I'm not sure
about <linkflags>, as I think I've seen uses of multiple options
in a single <linkflags>, which obviously won't work if the argument
is indiscriminately quoted.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk