Skip to content

CREATE_PROJECT: Disable NDEBUG for cmake #6667

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

Merged
merged 1 commit into from
Jun 1, 2025

Conversation

orgads
Copy link
Contributor

@orgads orgads commented May 30, 2025

ScummVM uses assert heavily, and having NDEBUG defined makes it no-op.

Inspired by https://github.com/llvm/llvm-project/blob/1f7885cf9c68/llvm/cmake/modules/HandleLLVMOptions.cmake#L118

@orgads orgads requested review from bluegr and criezy May 30, 2025 11:18
Copy link
Member

@criezy criezy left a comment

Choose a reason for hiding this comment

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

Thank you. Having NDEBUG defined in cmake release builds was an oversight, and I think it is indeed better to be consistent with what we do in our main build system (using configure).
I think there is one issue that needs to be fixed, but otherwise it looks good.

@orgads orgads force-pushed the cmake-no-ndebug branch from 5976e0c to a319889 Compare June 1, 2025 04:31
@orgads orgads merged commit 6ad2e5d into scummvm:master Jun 1, 2025
8 checks passed
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