Boost logo

Boost-Build :

Subject: Re: [Boost-build] clfags option with space in user-config.jam
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-05-01 11:17:08


AMDG

On 05/01/2015 05:58 AM, Edward Diener wrote:
> How do I specify a cflags or cxxflags option, in a jamfile, that needs a
> space in the actual option ?
>
> For instance the gcc -isystem option is:
>
> -isystem dir
>
> If I specify, in user-config.jam,
>
> using gcc : : : <cflags>"-isystem some_directory" ;
>

This seems to work for me:

using gcc : 4.6.2 : g++ : <cxxflags>"-isystem some_directory" ;

$ b2 -n
...
gcc.compile.c++ bin\gcc-mingw-4.6.2\debug\main.o

    "g++.exe" -ftemplate-depth-128 -isystem some_directory -O0
-fno-inline -Wall -g -c -o "bin\gcc-mingw-4.6.2\debug\main.o" "main.cpp"

What exactly is the problem?

> Boost build thinks this is two separate options "isystem" and
> "some_directory". What is the correct syntax ?
>

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