Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-09-18 18:19:56


tonygeek wrote:

> --- In jamboost_at_[hidden], David Abrahams <dave_at_b...> wrote:
>
>
>>Use the "difference" rule to remove the invalid flags. See
>>borland-5.6.4-tools.jam for an example.
>
>
> What exactly is the syntax for difference rule? I could not find it
> in docs from CVS.
>
> Based on Borland example I interpreted it as a substitution rule.
>
> Indeed, lines:
>
> CFLAGS = [ difference $(CFLAGS) : /Og ] ;
> CFLAGS = [ difference $(CFLAGS) : /Gs ] ;
>
> remove these two deprecated options and there are no more warnings
> to the effect.
>
> However, when I tried:
>
> CFLAGS = [ difference $(CFLAGS) : /ML ] /MT ;
> CFLAGS = [ difference $(CFLAGS) : /MLd ] /MTd ;
>
> to remove options for nonexistent VC8.0 single-threaded library I
> get both /MT and /MTd concatenated to every compiler command line.

You can't add flags unconditionally like that. Perhaps this is what you
meant...

## These options not supported.
CFLAGS = [ difference $(CFLAGS) : /ML /MLd ] ;
## Replace by these options.
flags vc8.0 CFLAGS
<runtime-build>release/<runtime-link>static/<threading>single : /MT ;
flags vc8.0 CFLAGS
<runtime-build>debug/<runtime-link>static/<threading>single : /MTd ;

** Replacing "vc8.0" with the name of your toolset **

HTH.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
 

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