|
Boost-Build : |
Subject: Re: [Boost-build] Specifying toolset with different address-model
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-06-24 16:00:56
On 6/24/2015 2:22 PM, Rene Rivera wrote:
>
>
> On Wed, Jun 24, 2015 at 1:13 PM, Edward Diener <eldiener_at_[hidden]
> <mailto:eldiener_at_[hidden]>> wrote:
>
> On 6/24/2015 10:51 AM, Ryan Gonzalez wrote:
>
>
>
> On June 23, 2015 11:20:41 PM CDT, Edward Diener
> <eldiener_at_[hidden] <mailto:eldiener_at_[hidden]>> wrote:
>
> Given compiler XXX, version n.n.n, which has a different
> executable
> path
> depending on whether it is the 32-bit or 64-bit compiler (
> this is the
> case for mingw-64 distros ), how do I specify separate
> 'using' toolsets
>
> statements in my user-config.jam for each path ?
>
> using gcc : 5.1 : path-to-32bit-version-of-compiler/g++ ;
> using gcc : 5.1 : path-to-64bit-version-of-compiler/g++ ;
>
> but now I have duplicate 'using' statements for the same
> compiler/version so that if I invoke:
>
> b2 toolset=gcc-5.1 address-model=32 ( or address-model=64 )
>
> it is impossible to distinguish between the two gcc-5.1
> toolsets.
>
>
> I think you can do something like:
>
> using gcc : 5.1-x86 : path-to-32-bit-version ;
> using gcc : 5.1-x64 : path-to-64-bit-version ;
>
>
> That did not work at all.
>
> Whether I invoke:
>
> b2 toolset=gcc-5.1
>
> or
>
> b2 toolset=gcc-5.1-x86
>
> I receive the Boost Build mnessage:
>
> error: "5.1" is not a known subfeature value of <toolset>gcc
>
>
> It's because dash ("-") is treated as a feature separator. You need to
> us something other than dash. Commonly we use tilde ("~") in that
> situation. For example:
>
> using gcc : 5.1~x86 : path-to-32-bit-version ;
> using gcc : 5.1~x64 : path-to-64-bit-version ;
Yes, that works. I could even use:
using gcc : 5.1 : path-to-32-bit-version ;
using gcc : 5.1x64 : path-to-64-bit-version ;
and invoke either
b2 toolset=gcc-5.1
or
b2 address-model=64 toolset=gcc-5.1x64
and in the latter case bjam can parse the version number as 5.1 correctly.
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