Boost logo

Boost-Build :

Subject: Re: [Boost-build] Target alternatives and multiple compilers - again
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-07-12 05:35:41


Edward Diener wrote:

> Ping !
>
> I need to use target alternatives with multiple compilers so I write, as part
>of my jamfile:
>
> test-suite somelib
> :
> [ compile some_source.cpp ]
> ;
>
> test-suite somelib_gcc
> :
> [ compile some_source.cpp
> : <cxxflags>-std=c++0x
> : some_source_gcc
> ]
> :
> <toolset>gcc-4.3.0
> <toolset>gcc-4.4.0
> <toolset>gcc-4.5.0
> <toolset>gcc-4.5.2
> <toolset>gcc-4.6.0
> ;
>
> test-suite somelib_gcc ;
>
> But some_source never gets compiled again with the -std=c++0x option for the
>gcc compilers mentioned. Can not target alternatives be used with multiple
>compilers ?

Edward,

It is not very clear to me what you want to achieve here. When building with
e.g. gcc-4.4.0, do you want some_source.cpp only be compiled with -std=c++0x or
both with and without it?

Gevorg


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