Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-20 00:38:16


brock_peabody wrote:
> I want to set a local variable based on what compiler is running:
>
> local exe_destination ;
>
> if msvc_is_running {
>
> exe_destination = "c:\\msvc_exes";
> }

Hmm... you can run bjam with

bjam msvc intel gcc gcc-2.95 borland

Which compiler name would you like? ;-)

> I gleaned the "if [ os.name ] = NT" from tools/msvc.jam, but I can't
> figure out how to check to see if msvc itself is running.

If you're about to select location for the "stage" rule, you can do that with:

stage dist : prog1 prog2 : <toolset>gcc:<location>/dist/gcc
<toolset>msvc:<location>/dist/msvc ;

That's called conditional requiremenst, and they are even documented (search
for "Conditional properties" in the main doc). I'd say that the place where
they are documented is not where they are likely to be found :-( One more
item to docs TODO.

- 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