Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-10-11 05:24:57


Vladimir Prus wrote:

>
>>However, now I would like to alter the optimization only for a release
>>build (because I want -O0 in debug (which will be the case
>>automatically) and -O1 in release)?
>
>
> I think that's the case for conditional requirements
>
> obj foo : foo.cpp : <variant>release:<cxxflags>-O1 ;
>
> There will be both -O3 (from "release") and "-01" on the command libe, but I
> believe -01 will come last and so override -03.

What's weird is that

<Jamfile>
lib bar : foo ;

obj foo : foo.cpp : <variant>release:<optimization>off ;
</Jamfile>

will induce all dependencies of library 'bar' (wich are in some
project-rule) to be compiled with '<optimization>off' also ?!

 


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