|
Boost-Build : |
Subject: Re: [Boost-build] Using target alternatives
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-09-17 03:47:31
On Wednesday 17 September 2008 06:09:56 Steven Watanabe wrote:
> AMDG
>
> Phil Bass wrote:
> > obj Stub_Types_obj : Stub_Types_i386.cpp : <toolset>gcc-x86 ;
> > obj Stub_Types_obj : Stub_Types_ppc.cpp : <toolset>gcc-ppc ;
> >
>
> Try this:
>
> obj Stub_Types_obj : Stub_Types_i386.cpp : <toolset>gcc
> <toolset-gcc:version>x86 ;
>
> > So I have two questions. First, is it possible to select by toolset
> > version? (I haven't been able to find anything in the docs on this.)
> > And, second, what should I be doing to create an object file from one
> > of two source files depending on the selected toolset/version?
>
> Your going about it the correct way. Unfortunately, Boost.Build does
> not seem
> to expand subfeatures in target requirements.
It's supposed to -- but I can imagine it not expanding subfeatures when
selecting alternative.
A bug report in trac would be appreciated.
- Volodya
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