Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-11-04 03:34:59


Hi Wink,

> I'm learning boost.build and would like advice on how to setup a project
> where I'm going to be cross compiling the same program for multiple
> platforms using various toolsets. The simplest example would be a single
> source that needs to be compiled using multiple toolsets:
>
> exe main : main.c : <toolset>gcc ;
> exe main : main.c : <toolset>msvc ;

I think that's much simpler:

exe main : main.c ;

> But I'd really like to have more control from the command line, for
> example; sometimes I'd to compile only with gcc other times msvc and still
> others both.

You can run

bjam gcc
bjam msvc
bjam msvc gcc

from command line to achieve that.

HTH,
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