Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-10-19 10:33:44


Reece Dunn wrote:
> + # sh
> + sh3 sh3dsp sh4 sh5

Can these shXxx be expressed via combinations of <architecture>sh and
different <address-model> and <instruction-set>?

> + # arm
> + arm4 arm4t arm5 arm5t

The same question.

> +.known-platforms = i386 amd64 ia64 arm mips sh ;

I don't see references to $(.known-platforms) in the code.

> +cpu-arch-arm =
> + <architecture>arm4/<address-model>
> + <architecture>arm4t/<address-model>
> + <architecture>arm5/<address-model>
> + <architecture>arm5t/<address-model>
> + ;
> +
> +cpu-arch-mips =
> + <architecture>mips4/<address-model>
> + ;
> +
> +cpu-arch-sh =
> + <architecture>sh3/<address-model>
> + <architecture>sh3dsp/<address-model>
> + <architecture>sh4/<address-model>
> + <architecture>sh5/<address-model>
> + ;

I don't think you need an empty <address-model> here. Single
<architecture> is enough to match correct settings. x86, amd64 and ia64
is a bit different case because it is not possible to do the correct
match using only <architecture>.

> + cpu = i386 amd64 ia64 arm mips sh ;

Sounds like it had to be $(.known-platforms). :-)

> +flags msvc LINKFLAGS <architecture>sh3/<address-model> : -machine:sh3 ;
> +flags msvc LINKFLAGS <architecture>sh3dsp/<address-model> : -machine:sh3dsp ;
> +flags msvc LINKFLAGS <architecture>sh4/<address-model> : -machine:sh4 ;
> +flags msvc LINKFLAGS <architecture>sh5/<address-model> : -machine:sh5 ;

The same comment about empty <address-model>.

PS: msvc.jam is getting bigger and bigger. :-)

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