Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-10-27 03:03:54


On Thursday 27 October 2005 11:57, cyberaxizh wrote:

Hi Alex,

> I've read all BJam's documentation, but I can't find the answer to the
> very simple question: how can I get the name of the selected toolset
> (gcc, vc, cw, etc.) in the 'init' rule of my module?

You can't, because there's no such things as "selected toolset". Boost.Build
can build your project with 10 variants of 10 toolsets in one invocation, so
it's not clear which one 100 combination is "selected".

Can you detail what are you trying to achieve?

> I need something like this:
> ===============================
> if [ os.name ] = NT
> {
> suffix_version = "26" ;
> suffix_unicode = "u" ;
> suffix_vendor = $(vendor_name) ;
> suffix_toolset = $toolset ; #But HOW?
> suffix_debug = "d" ;
> }
> ===============================
> These suffixes are later used to determine create library name.

Take a look at the the use of <tag> feature at the top of Boost's Jamfile.v2:

http://boost-consulting.com/boost/Jamfile.v2

and the "tag" rule further in the file, that handles adding various suffixes
for Boost.

- Volodya

>
> --
> With respect,
> Alex Besogonov (cyberax_at_[hidden])
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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