Subject: Re: [boost] Including a system link library for every test, but only on mingw-w64 builds?
From: Peter Dimov (lists_at_[hidden])
Date: 2017-11-08 14:33:41
James E. King, III wrote:
> On Mon, Nov 6, 2017 at 4:03 PM, Steven Watanabe via Boost
> <boost_at_[hidden]> wrote:
> > The conditional would look like <toolset>gcc,<target-os>windows:...
> That allows me to make a conditional <cxxflags> or <link> or whatnot, by
> appending it to the end.
> How do I apply this to control whether a bjam directive (like [ run ... ])
> is executed on a given platform?
You can use `<build>no` to disable something.
> I would also like to use this technique to prevent a short benchmark from
> building and running in the debug variant.
In this case, for instance, `<variant>debug:<build>no`.
(This is how `[ requires cxx11_constexpr ]` (for example) works; it returns
either `<build>no` or nothing.)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk