Boost logo

Boost-Build :

From: Jos Hickson (jos.hickson_at_[hidden])
Date: 2007-07-11 03:55:35


I still haven't managed to find a proper fix for this. My solution at
the moment is to add <cxxflags>-O2 to our Jamroot for release builds:
the -O2 appears after the -O3 and therefore is the setting use but
that does not seem a particularly neat approach.

One thing I was wonder was why -O3 is the default as that is usually
considered a bit risky?


Jos Hickson

On 29/06/07, Jos Hickson <jos.hickson_at_[hidden]> wrote:
> Hello,
> The release variant uses <optimization>speed (setting the -O3 flag for
> GCC) and <inlining>full but that results in binaries that seg fault.
> This appears to have something to do with the full inlining. Using
> conditions in our project Jamfiles it is easy enough to get release to
> use <inlining>on but unfortunately the -O3 flag also sets full
> inlining on so we would rather use -O2.
> For the moment I have altered the definition of <optimization>speed in
> gcc.jam to use -O2 instead of -O3 but I would much rather override the
> definition in our own Jamfiles, Jamroot or site-config.jam. Is there
> any way to do that? I've tried putting
> flags gcc.compile OPTIONS <optimization>speed : -O2 ;
> in our site-config.jam but I get the error
> error: Module site-config attempted to set flags for module gcc.
> Any ideas?
> Regards,
> Jos Hickson

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