|
Boost-Build : |
Subject: Re: [Boost-build] Running check-target-builds against a target every time
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-06-01 19:01:32
AMDG
On 06/01/2016 03:45 PM, Edward Diener wrote:
> On 6/1/2016 3:33 PM, Steven Watanabe wrote:
>>
>> On 06/01/2016 10:59 AM, Edward Diener wrote:
>>> I am invoking check-target-builds against a target in a jamfile, but I
>>> need to run it each time it is invoked. Instead it is only actually
>>> building the target once even if I invoke it multiple types in a
>>> jamfile. How can I tell Boost Build that I want to build the target each
>>> time it is invoked from check-target-builds ?
>>>
>>
>> Why do you need to build it multiple times?
>> It should give the same result every time.
>
> I am trying to pass different parameters to the rule which creates the
> same target each time. I can't create a target for each possibility as
> this involves theoretically from 1 to 28 different boolean possibilities
> each time ( each possibility is a <define>some_macro=0 or
> <define>some_macro=1 where 'some_macro' has 28 different names ). <snip>
>
Okay, I think I understand what your goal is.
Try creating a wrapper that defines a target
and then immediately calls check-target-builds
with that target. predef.check actually does
something similar. See libs/predef/tools/check/predef.jam.
In Christ,
Steven Watanabe
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