|
Boost-Build : |
Subject: Re: [Boost-build] Using target alternatives
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-16 22:09:56
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.
In Christ,
Steven Watanabe
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