Skip to content

SetDefaultCompileFlags: Allow --coverage without --build-type=debug - #149

Merged
awelzel merged 1 commit into
masterfrom
topic/awelzel/allow-coverage-in-none-debug-builds
Sep 11, 2026
Merged

awelzel merged 1 commit into
masterfrom
topic/awelzel/allow-coverage-in-none-debug-builds

Conversation

@awelzel

@awelzel awelzel commented May 5, 2026

Copy link
Copy Markdown
Contributor

This seems unnecessary restrictive and surprising as it silently discards --coverage for non debug builds. Even if coverage outside of debug builds might not be recommended, enabling it should be possible.

@timwoj

timwoj commented May 7, 2026

Copy link
Copy Markdown
Member

Does coverage mean anything without the debug symbols? I actually don't know if it would miss anything or not.

@awelzel

awelzel commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Does coverage mean anything without the debug symbols? I actually don't know if it would miss anything or not.

Hmm, so I usually put -g or -gdwarf into CXXFLAGS for build type Release (where I could also put --coverage anyhow), but RelWithDebInfo as build type is probably the better example.

@timwoj timwoj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally coming back to this I don't see anything wrong with it.

@awelzel
awelzel merged commit 623ce20 into master Sep 11, 2026
1 check passed
@awelzel
awelzel deleted the topic/awelzel/allow-coverage-in-none-debug-builds branch September 11, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants