Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost Build cxxflags and cflags
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-04-05 21:27:10


On 4/5/2011 8:46 PM, Steven Watanabe wrote:
> AMDG
>
> On 04/05/2011 05:31 PM, Edward Diener wrote:
>> How does Boost Build know when to pass cxxflags as opposed to cflags, or
>> vice versa, to a rule ?
>>
>
> By rule do you mean the updating action?
> Actually all the properties are passed to
> it regardless of whether they're needed or
> not. Toolsets generally use toolset.flags
> to store the values of a specific feature
> into a named variable.
>
> For example, looking at a random C++ toolset:
>
> ...
> flags como-win C++FLAGS <cxxflags> ;
> flags como-win DEFINES <define> ;
> ...
> actions compile.c++
> {
> $(CONFIG_COMMAND) ... -D$(DEFINES) ... $(C++FLAGS) ...
> }

How does the updating action decide if I am compiling for C++ or C in
order to determine whether or not to use the <cxxflags> or the <cflags>
I specify ?


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