Skip to content

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

Open
awelzel wants to merge 1 commit into
masterfrom
topic/awelzel/allow-coverage-in-none-debug-builds
Open

SetDefaultCompileFlags: Allow --coverage without --build-type=debug#149
awelzel wants to merge 1 commit into
masterfrom
topic/awelzel/allow-coverage-in-none-debug-builds

Conversation

@awelzel
Copy link
Copy Markdown
Contributor

@awelzel awelzel commented May 5, 2026

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
Copy link
Copy Markdown
Member

timwoj commented May 7, 2026

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

@awelzel
Copy link
Copy Markdown
Contributor Author

awelzel commented May 8, 2026

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.

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