|
Boost-Build : |
From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-10-04 13:25:29
Reece Dunn wrote:
> Great! I understand how this works for VC8, but what about VC7.1 where
> the user might want to say:
>
> using msvc : 7.1 ;
> using msvc : 7.1 : $(psdk-vc7-cross-compiler) : <architecture>ia64 ;
>
> ?
Not really. This is the idea - msvc initialization will remain intact
while psdk.jam will register additional INCLUDE, LIB and PATH that will
overload with the settings set by msvc.
> I wasn't referring to platform SDK configuration with vc7.1, but using
> the ia64/amd64 cross-compilers that can be found on some versions of the
> SDK where the user might want to say use the x86 compiler for normal
> builds, but if I am targtting IA64, I want to use the cross-compiler
> that comes with my PlatformSDK distribution.
amd64/ia64 compiler from PSDK is enabled by adding some PSDK directories
to PATH. So if the action is something like this:
actions ...
{
$(SETUP)
cl.exe ....
}
$(SETUP) can be a list of commands 'set PATH=...;%PATH%'. These commands
will setup the environment we need.
> Also, what about the user configuring msvc-6.0/<architecture>arm to use
> the embedded VC++ compiler?
I don't know yet. I suppose we can set addition flags for
compiler/linker/assembler tool. Their value will depend on selected
<architecture> etc. settings.
> Sure. The x86_cex86 cross-compiler is still an issue because it cannot
> currently be detected without help. The x86_mips compiler can be covered
> by <architecture>mips*. x86_arm and x86_sh would require new additions
> to the architecture feature in order to get the condition working.
>
> x86_cex86 could be supported by adding a cex86 architecture value, like
> what would be needed for arm and sh, e.g. <architecture>cex86 or
> <architecture>x86/<instruction-set>cex86.
Sounds like you want to post a patch implementing this. :-)
>>IMO: we can implement this feature but the same functionality can be
>>implemented without it using that same amount of work.
> I don't quite follow. Could you explain?
Sorry, I meant that passing a condition to the init rule can be
implemented but I don't think it is the best way to solve the problem
with amd64/ia64 compilers from PSDK.
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