Boost logo

Boost-Build :

Subject: Re: [Boost-build] Question about using condition in bjam
From: Carfield Yim (carfield_at_[hidden])
Date: 2009-08-25 22:45:41


Thanks a lot, the syntax error are fixed now. However, in fact it cannot use

if toolset = "gcc"

The determine if I am using GCC / SunCC, it just always go to "else" cases,
would you help to point how can I determine if I am using GCC or not?

Matthew Chambers-3 wrote:
>
> If you see an error like that it generally means you missed a delimiter
> or messed up the spacing. Spaces are required between all tokens:
>
> if toolset = "gcc" { } else { }
>
> -Matt
>
>
> Carfield Yim wrote:
>> I know it is very basic, but I figure it out when reading manual. Say
>> my project need to compile on GCC and Sun Studio, and for GCC it only
>> work for oracle 9 and for Sun Studio it work for oracle 10. I try to
>> have something like:
>>
>>
>>
>> if(toolset = "gcc"){
>>
>> use-project /Oracle : /oracle/9.2.0 ;
>>
>> }else{
>>
>> use-project /Oracle : / oracle/10.2.0 ;
>>
>> }
>>
>>
>>
>> But it complaint about
>>
>>
>>
>> ../../../Jamroot:33: syntax error at keyword :
>>
>>
>>
>> However from manual it look like it is suggesting syntax like that.
>> Would someone help to clarify?
>>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>

-- 
View this message in context: http://www.nabble.com/Question-about-using-condition-in-bjam-tp25118569p25145678.html
Sent from the Boost - Build mailing list archive at Nabble.com.

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