Boost logo

Boost-Build :

Subject: Re: [Boost-build] multiple variant builds
From: Jess Peterson (jess_at_[hidden])
Date: 2014-11-13 12:51:13


Thank you. That works very well.

On Thu, Nov 13, 2014 at 8:50 AM, Juraj Ivančić <juraj.ivancic_at_[hidden]>
wrote:

> On 13.11.2014. 14:15, Jess Peterson wrote:
>
>> For simplicity let us say that I want to build two concrete targets, one
>> for linux, and one cross-compiled for windows. To that end, I have two
>> gcc inits, one using the default compiler and one using gcc-mingw32. If
>> I run b2 twice, both work:
>>
>> b2 toolset=gcc
>> b2 toolset=gcc-mingw32 target-os=windows
>>
>> How do I run them together?
>>
>> If I use:
>> b2 toolset=gcc toolset=gcc-mingw32 target-os=windows
>> it builds the two desired targets but also tries for gcc with windows
>> flags and gcc-mingw32 with linux flags.
>>
>> I do not see a way to specify that a given gcc toolset should only be
>> used for a particular target-os (e.g putting <target-os>windows in the
>> options.
>>
>> I tried what was in Vladimir's Boost.Build System paper:
>> b2 toolset=gcc -- toolset=gcc-mingw32 target-os=windows
>> but that only builds whatever comes before the dashdash.
>>
>
> Try this (untested):
>
> b2 toolset=gcc toolset=gcc-mingw32/target-os=windows
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/
> mailman/listinfo.cgi/boost-build
>



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