Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to remove specific compiler/linker flags
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-05-06 11:12:59

On Thu, 06 May 2010 16:36:11 +0200, Anthony Foglia <AFoglia_at_[hidden]>

> Boris Schaeling wrote:
>> On Thu, 06 May 2010 08:28:57 +0200, Benjamin Prestele
>> <benjamin.prestele_at_[hidden]> wrote:
>>> [...]while the <optimization>off gets propagated down to all dependent
>>> targets, the <cxxflags> do not. So basically all dependent targets
>>> need to to be updated with the additional <cxxflags>.
>> If the dependent targets are all defined in Jamfiles I think you can
>> use:
>> project : requirements <cxxflags>-O2 ;
> What if he made a new variant? Would that get propagated? Or would a
> feature? (What if the feature were link-incompatible?)

While you can create a new propagating feature (have a look at
/tools/build/v2/tools/builtin.jam where features are defined) the feature
would need to be used somewhere. But I'm out now as I never made myself
familiar with the script language bjam is based on (I'm waiting for the
Python port :).


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