Boost logo

Boost-Build :

Subject: Re: [Boost-build] [user-config.jam][stlport] how are toolset and stlib versions selected?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-05-25 01:47:43


On Monday 25 May 2009 03:15:33 Andy Schweitzer wrote:
> Can someone explain how tool usage gets resolved, given the following in
> user-config.jam?
>
> In my command line I specify toolset=msvc-8.0~wm5~stlport5.2 and also
> stlib=stlport
>
> How does bjam use those parameters to choose among all the possible
> using stlport statements in user-config.jam?
>
>
> Here's my user-config.jam:
>
> ==========user-config.jam=============================
> using stlport : 5.2.1 :
> ...
>
> using msvc : 8.0~stlport5.2 :
> ...
>
> using msvc : 8.0~wm5~stlport5.2 :
> ...
>
> using stlport : 5.2~evc8~arm :
> ...
>
> using stlport : 5.2~vc8~arm :
> ...
>
> using msvc : 9.0~stlport5.2 :
> ...
>
> using msvc : 9.0~wm5~stlport5.2 :
> ...
>
> using stlport : 5.2~evc9~arm :
> ...
>
> using stlport : 5.2~vc9~arm :
> ....
> ==========end user-config.jam=========================
>
> It seems like the intention of multiple using statements is to allow
> something like "if I'm using msvc-8, use my stlport-vc8; if I'm using
> msvc-9-windows-mobile, use my stlport-vc9-windows-mobile, so the if we
> say toolset=mscv-9.0~wm5~stlport5.2 stdlib=stlport, the correct stlport
> should be found.

No, not really. You can pass a version to 'using stlport', e.g.:

    using stlport : 5.2 : ... ;

and then:

    using stlport : 5.3 : ... ;

Then, the selection is made by explicitly requesting the right version:

    bjam stdlib=stlport-5.3

There's no selection mechanism that is keyed on toolchain, or other properties.

Does this help?

- Volodya


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