|
Boost-Build : |
Subject: Re: [Boost-build] Different <cflags> per toolset?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-10-23 04:27:22
On Tuesday, October 19, 2010 16:58:46 Dieter Van de Walle wrote:
> Hello,
>
> I am a novice at boost-build, and have run into the following problem:
> I have upgraded the compiler on my development machine to gcc-4.4 .
> In the code I am currently working on, to get the code to build with
> gcc-4.4, I need to add a gcc-4.4 specific cflag. This fixes the build on
> my dev machine. However, this breaks the code on the buildmachine and
> other developers.
>
> So I need to specify cflags that are specific to a given toolset.
>
> I do not yet understand enough of boost-build to do this,
> I have no clue if this is possible, how hard this is, or where to start...
>
> Some pointers would be greatly appreciated!
>
> (In general, some advanced examples of boost-build environments
> would be very much appreciated.
> I find it very hard to learn the boost-build language, due to lack of
> good documentation and samples...)
>
> Version:
> Boost.Build V2 (Milestone 12)
> Boost.Jam 03.1.16
I suggest you get nightly build from http://boost.org/boost-build2, and then
use the following conditional requirement:
<tooset>gcc-4.4.X:<cxxflags>-whatever
The "4.4.X" part should match the version shown in the target paths.
HTH,
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build: http://boost.org/boost-build2
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