Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split "release" from "debug-optimized" configuration #834

Merged
merged 1 commit into from
Feb 12, 2023

Conversation

mitchhentges
Copy link
Contributor

Some downstream projects may want to avoid the size cost of including debug symbols in packaged libraries.

This change maintains the default of continuing to keep debug symbols in Meson and CMake projects, but now provides an opt-out via the "--configuration" option.

Note: ideally, this state wouldn't have to be spread over two variables, but I wanted to avoid the potential breakage risk involved with having opts.configuration be something other than the common "debug" and "release" strings, considering how it's used directly in quite a few places.

@mitchhentges
Copy link
Contributor Author

I've run pip install black and black . to resolve formatting errors 👍

@pbor
Copy link
Contributor

pbor commented Feb 11, 2023

I am ok with this proposal, but I would stick to the meson terminology instead of the cmake one, so I would call it debugoptimized

Some downstream projects may want to avoid the size cost of including
debug symbols in packaged libraries.

This change maintains the default of continuing to keep debug symbols
in Meson and CMake projects, but now provides an opt-out via the
"--configuration" option.

Note: ideally, this state wouldn't have to be spread over two variables,
but I wanted to avoid the potential breakage risk involved with having
`opts.configuration` be something other than the common `"debug"` and
`"release"` strings, considering how it's used directly in quite a
few places.
@mitchhentges mitchhentges changed the title Split "release" from "release-with-debug-symbols" configuration Split "release" from "debug-optimized" configuration Feb 11, 2023
@pbor pbor merged commit b1c6b90 into wingtk:main Feb 12, 2023
@pbor
Copy link
Contributor

pbor commented Feb 12, 2023

Thank you!

@mitchhentges mitchhentges deleted the release-without-debug-symbols branch February 12, 2023 19:52
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.

None yet

2 participants