Boost logo

Boost-Build :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2006-12-01 17:51:21


Hi,

I'd like to add the ability to externally configure gcc to set the
<address-model> so I've added these lines to gcc.jam.

flags gcc.compile OPTIONS <address-model>32 : -m32 -Wa,--32 ;
flags gcc.compile OPTIONS <address-model>64 : -m64 -Wa,--64 ;

flags gcc.link OPTIONS <address-model>32 : -m32 -Wa,--32 ;
flags gcc.link OPTIONS <address-model>64 : -m64 -Wa,--64 ;

I want give the user the ability to specify the address model from
the command line and get it into the gcc toolset properties. For
sake of argument, my jamroot has this line in it.

constant cl-address-model : 32 ;

My user-config.jam looks like this but I know this doesn't work.

using gcc : 3.4.6 : : <address-model>$(cl-address-model) ;

I need to have a single toolset description for gcc-3.4.6 whose
address model can be specified by the user from the command line. If
the user doesn't set the address-model, we'll use what the compiler
uses by default. What's the best way to accomplish this?

Thanks.

-- Noel Belcourt


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