|
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 15:33:19
AMDG
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 tried adding the line:
>
> ALWAYS my_target ;
>
> in the jamfile in which the target is being built but, alas, it did not
> do what I desire.
>
There are three reasons that it doesn't work:
- check-target-builds uses an extra layer of caching so
that targets that fail to build won't be rebuilt every time.
This is unaffected by always.
- always only forces a target to update once per b2 invocation.
- The correct rule is "always", not "ALWAYS". (As a
general rule ALL CAPS is for Jam builtins, which apply
to the jam targets, not metatargets)
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