build: fix optimisation flags used for --coverage

-O0 is just overriding -Og.
This commit is contained in:
fanquake 2024-01-10 13:54:44 +00:00
parent 1dc2c9b385
commit 00c1e2aa44
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -862,7 +862,7 @@ if test "$use_lcov" = "yes"; then
[AC_MSG_ERROR([lcov testing requested but --coverage linker flag does not work])])
AX_CHECK_COMPILE_FLAG([--coverage],[CORE_CXXFLAGS="$CORE_CXXFLAGS --coverage"],
[AC_MSG_ERROR([lcov testing requested but --coverage flag does not work])])
CORE_CXXFLAGS="$CORE_CXXFLAGS -Og -O0"
CORE_CXXFLAGS="$CORE_CXXFLAGS -Og"
fi
if test "$use_lcov_branch" != "no"; then