Boost logo

Boost-Build :

Subject: [Boost-build] bjam script to define a variable based on compiler platform
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-04-27 11:47:16


Hi all,

 

Is it possible to write a bjam script to define a macro based on the
combination of compiler and platform. Basically I want to have a
variable be assigned like this:

 

If ( 64_bit compiler config) {

Sizeof_int = 8 ;

} else {

Sizeof_int = 4 ;

}

 

 

Is it possible ?



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