List Info

Thread: how to add conditional requirement for a particular toolset?




how to add conditional requirement for a particular toolset?
user name
2007-11-07 07:02:07
Dear all,

I want to add extra compilation flags to one compiler, but
only for the 
release build. I tried the following:

     
<toolset>msvc-8.0:<variant>release:<cxxflags&
gt;"/GF /GL /Ox /Ot 
/fp:fast /arch:SSE2 "
         
<toolset>msvc-8.0:<variant>release:<linkflags
>"/LTCG /opt:ref 
/opt:icf"

but it does not seem to do what I want. Using -d2, I donøt
see the 
compiler switches being defined.

Is there an easy way?

Thanks

-Thorsten
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Re: how to add conditional requirement for a particular toolset?
user name
2007-11-07 07:18:35
Thorsten Ottosen wrote:
> Is there an easy way?
>
>   
Try:

<toolset>msvc-8.0,<variant>release:<cxxflags&
gt;"/GF /GL /Ox /Ot 
/fp:fast /arch:SSE2 "

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: how to add conditional requirement for a particular toolset?
user name
2007-11-07 07:22:04
Thorsten Ottosen wrote:

> Dear all,
> 
> I want to add extra compilation flags to one compiler,
but only for the
> release build. I tried the following:
> 
>      
<toolset>msvc-8.0:<variant>release:<cxxflags&
gt;"/GF /GL /Ox /Ot
> /fp:fast /arch:SSE2 "
>          
<toolset>msvc-8.0:<variant>release:<linkflags
>"/LTCG /opt:ref
> /opt:icf"

Looking at 

http://boost
.org/boost-build2/doc/html/bbv2/advanced/targets.html#bbv2.a
dvanced.targets.requirements

I see a different syntax for the case where condition has
several features.

- Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )