Boost logo

Boost-Build :

Subject: Re: [Boost-build] Putting quotes around compiler option
From: Edward Diener (eldiener_at_[hidden])
Date: 2017-05-06 21:03:06


On 5/6/2017 2:19 PM, Steven Watanabe via Boost-build wrote:
> AMDG
>
> On 05/06/2017 12:14 PM, Edward Diener via Boost-build wrote:
>> Is there any way I can force Boost Build to pass a compiler option with
>> quotes ( " ) around the option when I specify the compiler option in a
>> jam file ?
>>
>
> Jam parses quotes. You need to escape them with '\'.

Thanks, that worked. But unfortunately there are other options being
passed to the toolset, which I do not control via a bjam toolset
definition, which also need to be quoted.

The reason for quoting an option is that if I use as the compiler
command a windows batch file, which eventually invokes the compiler
command, all unquoted options which have an equal sign ( = ) are broken
into two separate options with the equal sign seen as a delimiter.

The solution as I see it is to use a python script rather than a Windows
batch file.

>
> 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