Subject: Re: [Boost-build] possible bug when cross compiling linux->windows
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-09-27 14:40:31
On Monday, September 27, 2010 22:09:44 Rene Rivera wrote:
> On 9/27/2010 11:56 AM, Vladimir Prus wrote:
> > In theory, we can even add toolset property to the mix. So that, if
> > you specify
> > bjam target-os=windows
> > and you have msvc configured in user-config.jam, it will get used.
> > This, however, requires that all properties involved in such special
> > selection do not have a default value, since otherwise by the
> > time we reach targets.common-properties, we don't know which
> > properties are explicitly specified by the user and which are defaulted.
> > What do you think?
> I somewhat already do that with the darwin toolset for picking out the
> correct one based on the architecture+target-os properties:
> using darwin : 4.2~iphone
> -4.2 -arch armv6
> : <striper>
> : <architecture>arm <target-os>iphone
> using darwin : 4.2~iphonesim
> : <striper>
> : <architecture>x86 <target-os>iphone
> Trough the use of toolset requirements.. But I still have to specify the
> toolset=darwin. Is that what you are referring to?
Actually, two things.
1. It would be nice to infer toolset=darwin as well
2. The above works because you have two compilers, willing to write down
requirements in user-config.jam and willing to request them on
command line. Say, if you remove the second 'using', and leave
the first one, user might still have to say:
bjam architecture=arm target-os=iphone
It would be nice if 'target-os=iphone' would be sufficient if there's
just one compiler for that target-os.
Does this clarify what I suggest?
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