Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost Build cxxflags and cflags
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-05 20:46:23


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

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at