Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2005-05-07 18:25:59


Craig Rodrigues wrote:

> Is it possible to modify my user-config.jam
> to detect what operating system I am on, and include the
> correct toolset? The reason I ask is because
> I have a single Boost Build tree (from CVS), on an NFS exported
> directory, and I have
> multiple bjam binaries. In my .bashrc, I set
> the PATH to pick up the correct bjam depending on my OS.
> The BOOST_ROOT is the same for me on whatever platform I am on.
>
> If I could get my user-config to use the darwin toolset
> on MacOS X, that would allow me to test BBv2 quickly
> on multiple platforms from a single Boost source tree.

Definitely. That's exactly what I'm doing.

OS = [ modules.peek : OS ] ;
if ( $(OS) = SOLARIS ) {
using gcc : : : <linker-type>sun ;
} else if ( $(OS) = MACOSX ) {
using darwin ;
} else {
using gcc ;
}

Phillip

 


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