Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-09-01 12:40:40


Rene Rivera wrote:
> Yes. It's 13 now :-) Some of those items will take some consideration as
> they require some thinking about how to generalize the ideas to other
> toolsets.

I have one small problem with newly added <architecture>,
<address-model> and <instruction-set> features. It seems we still need
to have '<address-model>default', '<architecture>native' and
'<instruction-set>default' as default values for them.

For Visual Studio 8 the configuration script 'vcvarsall.bat' should be
called with different parameters depending on the target CPU. So I
defined something like this:

flags msvc .SETUP <architecture>x86/<address-model>32 : " x86" ;
flags msvc .SETUP <architecture>x86/<address-model>64 : " x86_amd64" ;
flags msvc .SETUP <architecture>ia64/<address-model>64 : " x86_ia64" ;

Now I want the first prefix to be used even if <architecture> or
<address-model> omitted:

flags msvc .SETUP : " x86" ;
flags msvc .SETUP <architecture>x86 : " x86" ;
flags msvc .SETUP <address-model>32 : " x86" ;
flags msvc .SETUP <architecture>x86/<address-model>32 : " x86" ;
flags msvc .SETUP <address-model>64 : " x86_amd64" ;
flags msvc .SETUP <architecture>x86/<address-model>64 : " x86_amd64" ;
flags msvc .SETUP <architecture>ia64/<address-model>64 : " x86_ia64" ;

The problem is when for example only '<architecture>x86' is passed all
three lines containing '<architecture>x86' will be used. But I need only
the 2nd one.

So the question is: is it possible to include 'no optional feature' as a
part of the condition? If not we will have to use the same approach as
BBv1 uses, i.e. 'default' and 'native' as default values.

Best regards/Venlig hilsen,
Alexey Pakhunov.

 


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