mirror of
https://github.com/postgres/postgres.git
synced 2026-07-16 13:12:58 -04:00
Preserve intermediate .c files in coverage mode
The introduction of the .y -> .c pattern rule causes some .c files such as bootparse.c to be considered intermediate files in the .y -> .c -> .o rule chain, which make would automatically delete. But in coverage mode, the processing tools such as genhtml need those files, so mark them as "precious" so that make preserves them.
This commit is contained in:
parent
6868ed7491
commit
4af3dda136
1 changed files with 2 additions and 0 deletions
|
|
@ -329,6 +329,8 @@ GENHTML = @GENHTML@
|
|||
ifeq ($(enable_coverage),yes)
|
||||
# ccache loses .gcno files
|
||||
export CCACHE_DISABLE = 1
|
||||
# preserve intermediate .c files for genhtml
|
||||
.PRECIOUS: %.c
|
||||
endif
|
||||
|
||||
# Feature settings
|
||||
|
|
|
|||
Loading…
Reference in a new issue