Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-03 03:01:11


On Friday 03 December 2004 09:50, gmu wrote:
> Hi,
>
> Sorry if the answer is obvious, I noticed that various compiler-specific
> optimation strings have been translated into bbv2 flags.
>
> On a project or target specific basis, how do specify gcc options such
> as "-march=pentium3 -fomit-frame-pointer"?

For target:

exe a : a.cpp : <cflags>-march=pentium3 <cflags>-fomit-frame-pointer ;

I've just added docs on this to

http://boost.org/boost-build2/doc/html/bbv2/advanced/builtins/features.html

For project: using project requirements

http://boost.org/boost-build2/doc/html/bbv2/advanced/jamfiles.html#bbv2.advanced.projects

> And will the options we specify override those that are automatically
> generated by bbv2?

V2 does not generate any of those options itself, so you're safe.

- Volodya

 


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