Boost logo

Boost-Build :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-05-24 10:28:04


At 10:24 AM 5/23/2002, David Abrahams wrote:

>> * How to I specify an additional compiler switch for one compiler from
>the
>> bjam command line? (I want to see the effect of running the regression
>> tests with an additional compiler switch.)
>
>Just add it to the BUILD request. If it's a raw compiler switch that's
not
>represented by a feature, you can use <cxxflags>additional-flags-here. If
>you need to make any property specific to a particular toolset, use
><toolset><*><feature>value.

OK. I added two examples to build_system.htm#initialize to show how to do
this.

>> * I want to add an additional compiler switch for compiles with version
>> 1.23 or later of a certain compiler. What do I add to the toolset?
>
>Hah; good luck. How will Jam know which version of the compiler you're
>using?
>Better support for multiple toolset versions is planned for v2, but I
doubt
>we'll get *that* sort of automation any time soon.
>
>If you're willing to ask users to set a global variable, you can define
>different actions within an if/then statement depending on the variable
>setting.
>
>However, I usually end up making a new toolset using extends-toolset so I
>can try both versions without getting subvariant collisions.

OK. I'll try that for Intel 6.0.

--Beman

 


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