Boost logo

Boost-Build :

Subject: Re: [Boost-build] BJam arguments relative to "using"
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-06-01 08:27:05


On 6/1/2010 3:59 AM, Jan Boehme wrote:
> On 05/31/2010 04:35 PM, Rene Rivera wrote:
>> Regarding your env var idea. is this what you want?
>>
>> ====
>> import os ;
>>
>> using gcc : : [ os.environ GCC ] ;
>> ====
>>
>
> Yes for sure, something like that could help out but it's not that nice
> in a multi OS multi language environment.

True.. But it's "not that nice" to allow specifying the compiler in the
command line instead of site-config.jam ;-)

>> I must I admit, I don't know what you mean by "forced by command line
>> arguments".
>>
>
> I mean something like:
> bjam toolset=gcc --toolset-cpp-path=/usr/bin/g++-3.4
> --toolset-fortran-path=/opt/intel/fce/10.1.017/bin/ifort ...

local cpp
   = [ MATCH "^--toolset-cpp-path=(.*)" : [ modules.peek : ARGV ] ] ;
cpp ?= g++ ;
using gcc : : $(cpp) ;

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

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