Closed cole-miller closed 2 months ago
FYI @freeekanayaka
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.43%. Comparing base (
cb65db7
) to head (334e23e
). Report is 3 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I've confirmed locally that this results in the intended CFLAGS being placed into the generated Makefile.
AC_PROG_CC adds some default compiler flags unless you tell it not to:
(Source.)
Also tweak DEBUG_ENABLED handling in Makefile.am: we always pass
-g3
in the basic CFLAGS set from configure.ac, so no point adding it again there. Instead, pass-O0
, which should be the default but here serves as a kind of documentation.Credit to @letFunny for noticing that
-O2
was getting passed to gcc even for builds configured with--enable-debug
.Signed-off-by: Cole Miller cole.miller@canonical.com