mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
In an in-tree build, "make coverage-html" invoked lcov with two "-d ." options, because $(srcdir) is just ".". With lcov 2.0 (and perhaps earlier versions?) that results in scanning every foo.gcda file twice and producing counts twice what they should be. With later lcov versions (at least 2.3), it results in "duplicate file" errors. In VPATH builds we do need two -d options to cover both regular and generated .c files. But in in-tree builds it suffices to specify "-d .", so suppress the second switch. Author: Narek Galstyan <narek.galstyan@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAHsn6_xCDQWe8_vVFhtFk27_xTdyVV+Dr0yWzaooBZ6+-VH-5w@mail.gmail.com Backpatch-through: 14