Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [bjam] combinations of options
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-08-30 11:26:00


AMDG

On 08/29/2016 09:31 AM, Lorenzo Caminiti wrote:
>
> When I use bjam the following will compile my code with combinations
> of MSVC, GCC, and CLang for both shared and static linking:
>
> $ bjam toolset=msvc,gcc,clang link=shared,static # (1)
>
> Is there a way to define a variant, target, or something else in the
> Jamfiles so that I can shortcut the above by typing just the variant
> target at the command line:
>
> $ bjam all_toolset_link_combinations # equivalent to (1) above
>
> I am asking this just for convenience because I have a feature like
> toolset but with 30+ values so it'd be nice to shortcut it to a single
> target on the bjam command line.
>

  Use an alias target with the default-build
set to your combination. (This is how
--build-type=complete at the root used to be
implemented.)

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net