[C++-sig] Re: Compilation options

David Abrahams dave at boost-consulting.com
Thu Jun 10 18:43:57 CEST 2004


"Olivier Ravard" <olivier.ravard at novagrid.com> writes:

> ----- Original Message ----- 
> From: "David Abrahams" <dave at boost-consulting.com>
> To: <c++-sig at python.org>
> Sent: Thursday, June 10, 2004 2:35 PM
> Subject: [C++-sig] Re: Compilation options
>
>
>> "Olivier Ravard" <olivier.ravard at novagrid.com> writes:
>> 
>> > Hi,
>> >
>> > I compiled some modules with boost.build and mingw tool.
>> > How can I do to tell bjam to compile with the -O3 option ?
>> >
>> > Thanks.
>> 
>> Are you sure you don't just want a full release build?
>> 
>>   bjam -sTOOLS=mingw -sBUILD=release
>> 
>> If you really *only* want the -03 flag,
>> 
>>   bjam -sTOOLS=mingw "-sBUILD=<cxxflags>-O3"
>> 
>> but that's usually not what you want.
>> 
>
> In fact, I want a release build with the -O3 option...

I believe the release build already uses -O3; you can add -d+2 to the
beginning of the bjam command-line to check.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com





More information about the Cplusplus-sig mailing list