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

SCons: Add DEV_ENABLED defines for target=debug builds #53383

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

akien-mga
Copy link
Member

This will allow adding developer checks which will be fully compiled out in
user builds, unlike DEBUG_ENABLED which is included in debug tempates and
the editor builds.

This define is not used yet, but we'll soon add code that uses it, and change
some existing DEBUG_ENABLED checks to be performed only in dev builds.

Related to godotengine/godot-proposals#3371.

Notes

I'm making this PR for 3.x only, as for master we'll want to have a full implementation of godotengine/godot-proposals#3371, changing the way we currently conflate C++ development tooling and user game debugging tooling under the same flags.

I'm not implementing that proposal just yet as it will create additional work for the contributors working on a potential Meson port, which needs to be evaluated first before refactoring the SCons buildsystem.

For 3.x this will allow @lawnjelly to add dev checks in various areas he's working on, and we might retrofit some of the existing checks in the new system.

This will allow adding developer checks which will be fully compiled out in
user builds, unlike `DEBUG_ENABLED` which is included in debug tempates and
the editor builds.

This define is not used yet, but we'll soon add code that uses it, and change
some existing `DEBUG_ENABLED` checks to be performed only in dev builds.

Related to godotengine/godot-proposals#3371.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants