git: bsd.crunchgen.mk: Fix crunchgen multiple exec issue in parallel mode
Aaron LI
aly at crater.dragonflybsd.org
Fri Sep 18 09:09:35 PDT 2026
commit 58adf31668e6885f419209015a05bd32337bbdd2
Author: Aaron LI <aly at aaronly.me>
Date: Fri Sep 18 23:31:25 2026 +0800
bsd.crunchgen.mk: Fix crunchgen multiple exec issue in parallel mode
crunchgen(1) outputs three files:
OUTPUTS=${OUTMK} ${OUTC} ${PROG}.cache
In parallel mode (-jN), the ${OUTPUTS} target previously caused the
rules to be executed three times (if N>=3).
Fix this issue by introducing a cookie file and route the rules through
it to build the outputs.
Summary of changes:
share/mk/bsd.crunchgen.mk | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/58adf31668e6885f419209015a05bd32337bbdd2
--
DragonFly BSD source repository
More information about the Commits
mailing list