diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-20 19:06:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-27 20:57:44 -0500 |
commit | d747a66a0defe0bf25989cda4f6d9dd89674d8a0 (patch) | |
tree | 5940499155b1f9d868e9604b5e2f2060576a59dd /t/list-of-tests.mk | |
parent | a61eaf68cf868e1874de168b1de5f2efcbb3cfb4 (diff) | |
download | automake-d747a66a0defe0bf25989cda4f6d9dd89674d8a0.tar.gz |
m4: rework silent-rules macros to avoid double expansion
Fixes automake bug https://bugs.gnu.org/32868.
The AM_SILENT_RULES macro defines all the silent-rules related setup.
It's also called by users to change the default verbosity level. This
leads to a quirk where automake calls it, expands the full context,
and then users call it, and it's fully expanded again.
Instead, let's rename AM_SILENT_RULES to _AM_SILENT_RULES and move the
initialization logic to late in the configure stage. This allows the
user-centric AM_SILENT_RULES call to expand into a single line to set
the default verbosity.
* m4/init.m4: Switch to _AM_SILENT_RULES.
* m4/silent.m4: Rename AM_SILENT_RULES to _AM_SILENT_RULES. Delay
evaluation of AM_SILENT_RULES to the end. Define new AM_SILENT_RULES to
set default rules verbosity.
* t/silent-defaults.sh: New tests.
* t/list-of-tests.mk: Add t/silent-defaults.sh.
Diffstat (limited to 't/list-of-tests.mk')
-rw-r--r-- | t/list-of-tests.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index d959b68db..dbfd8d6d1 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -1015,6 +1015,7 @@ t/sanity.sh \ t/seenc.sh \ t/silent-c.sh \ t/silent-cxx.sh \ +t/silent-defaults.sh \ t/silent-lt.sh \ t/silent-f77.sh \ t/silent-f90.sh \ |