|
Boost-Build : |
Subject: Re: [Boost-build] mingw 32 and 64 bit targets
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-08-18 08:49:39
On 8/18/2015 5:22 AM, Roland Schwarz wrote:
> Until boost version 1.57 I have been able to put a 64 bit and a 32 bit
> mingw compiler specification into a *-config.jam file. I used to
> differentiate between the both by specifying different <flavor> 's.
>
> Now with boost 1.59 I see some configuration checks which give me:
>
> Performing configuration checks
>
> - 32-bit : no
> - 64-bit : yes
> - arm : no
> - mips1 : no
> - power : no
> - sparc : no
> - x86 : yes
>
> The availability of 32-bit changes if I put the 32 bit compiler first
> into the config file.
>
> So my question is: How do I specify that a specific compiler supports 32
> or 64 bits? Or how do I make the configuration checks pick up both
> compilers?
>
> Or will I need a separate config file per compiler ?
In my user-config.jam for mingw-64/gcc I have:
using gcc : 4.8 :
C:/Utilities/mingw-w64/i686-4.8.5-posix-dwarf-rt_v4-rev0/mingw32/bin/Boostgcc48.bat
;
using gcc : 4.8x64 :
C:/Utilities/mingw-w64/x86_64-4.8.5-posix-seh-rt_v4-rev0/mingw64/bin/Boostgcc48x64.bat
;
using gcc : 4.9 :
C:/Utilities/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev0/mingw32/bin/Boostgcc49.bat
;
using gcc : 4.9x64 :
C:/Utilities/mingw-w64/x86_64-4.9.3-posix-seh-rt_v4-rev0/mingw64/bin/Boostgcc49x64.bat
;
using gcc : 5.1 :
C:/Utilities/mingw-w64/i686-5.1.0-posix-dwarf-rt_v4-rev0/mingw32/bin/Boostgcc51.bat
;
using gcc : 5.1x64 :
C:/Utilities/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/bin/Boostgcc51x64.bat
;
If I use b2 as:
b2 address-model=64 toolset=gcc-5.1x64
as an example, this works for me. I suspect you can also add the
address-model=64 to the 'using gcc' statement for the 64-bit versions,
perhaps with an '<address-model>64' notation, but I have not tried it.
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