mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
ee914ef902
Lots more unit tests and code cleanup Relevant changes from ChangeLog o job.c: Print -de error information when running multiple jobs o var.c: only report error for unmatched regex subexpression when linting (-dL) since we cannot tell when an unmatched subexpression is an expected result. reduce memory allocations in the modifiers ':D' and ':U' reduce memory allocation and strlen calls in modifier ':from=to' in the ':Q' modifier, only allocate memory if necessary improve performance for LazyBuf reduce debug logging and memory allocation for ${:U...} reduce verbosity of the -dv debug logging for standard cases fix double varname expansion in the variable modifier '::=' o var.c: avoid evaluating many modifiers in parse only mode in strict mode (-dL) many variable references are parsed twice, the first time just to report parse errors early, so we want to avoid side effects and wasted effort to the extent possible.
20 lines
613 B
Makefile
20 lines
613 B
Makefile
# $NetBSD: jobs-empty-commands-error.mk,v 1.1 2021/06/16 09:39:48 rillig Exp $
|
|
#
|
|
# In jobs mode, the shell commands for creating a target are written to a
|
|
# temporary file first, which is then run by the shell. In chains of
|
|
# dependencies, these files would end up empty. Since job.c 1.399 from
|
|
# 2021-01-29, these empty files are no longer created.
|
|
#
|
|
# After 2021-01-29, before job.c 1.435 2021-06-16, targets that could not be
|
|
# made led to longer error messages than necessary.
|
|
|
|
.MAKEFLAGS: -j1
|
|
|
|
all: existing-target
|
|
|
|
existing-target:
|
|
: 'Making $@ out of nothing.'
|
|
|
|
all: nonexistent-target
|
|
: 'Not reached'
|