Boost logo

Boost-Build :

Subject: Re: [Boost-build] Manipulating requirements based on a program's return value
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-05-24 17:14:26


On 05/24/2016 02:59 PM, Edward Diener wrote:
> I am looking for a way in Boost Build that I can create a conditional
> requirement based on whether a particular program I run returns a
> particular value. In other words, instead of a conditional requirement
> like:
> <toolset>gcc:<link>static
> I could have a conditional requirement like:
> run_some_program(pass_some_parameter)==1:<link>static
> Of course I am making up syntax that has nothing to do with Boost build
> but the gist of my desire is to be able to set a conditional requirement
> based on a program's return value when passed some specific input
> parameter(s).
> It seems as if this sort of thing should be possible in Boost Build but
> I have not figured out how to achieve it given my knowledge of Boost
> Build. Are there any facilities for doing such a thing in Boost Build ?
> If there are, any pointers would be helpful.

  Try configure.check-target-builds. It's mostly
used to check compiles, but it can also be used
for an arbitrary target.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at