]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Add menuselect options to facilitate code tracing and coverage
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 30 Oct 2025 12:55:49 +0000 (06:55 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 4 Nov 2025 14:16:00 +0000 (14:16 +0000)
commita9a1b976a7cbac855523996dbe4197caf014d99c
tree46ac7bb0d8dff36155e9ab35328a665e0dde1fe9
parent27fb039839a2c6f339fc413be944f2a1f05bfe34
build: Add menuselect options to facilitate code tracing and coverage

The following options have been added to the menuselect "Compiler Flags"
section...

CODE_COVERAGE: The ability to enable code coverage via the `--enable-coverage`
configure flag has existed for many years but changing it requires
re-running ./configure which is painfully slow.  With this commit, you can
now enable and disable it via menuselect. Setting this option adds the
`-ftest-coverage` and `-fprofile-arcs` flags on the gcc and ld command lines.
It also sets DONT_OPTIMIZE. Note: If you use the `--enable-coverage` configure
flag, you can't turn it off via menuselect so choose one method and stick to
it.

KEEP_FRAME_POINTERS: This option sets `-fno-omit-frame-pointers` on the gcc
command line which can facilitate debugging with 'gdb' and tracing with 'perf'.
Unlike CODE_COVERAGE, this option doesn't depend on optimization being
disabled.  It does however conflict with COMPILE_DOUBLE.
Makefile.rules
build_tools/cflags.xml