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 #53799

Merged
merged 1 commit into from
Oct 14, 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.


Same as #53383 added initially for 3.x, we're starting to have the same need in master so it's better not to wait for a full resolution of godotengine/godot-proposals#3371 for this.

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.
@akien-mga akien-mga added this to the 4.0 milestone Oct 14, 2021
@akien-mga akien-mga requested review from a team as code owners October 14, 2021 10:03
@Faless
Copy link
Collaborator

Faless commented Oct 14, 2021

As a future improvement, would it make sense to move DEBUG_ENABLED and DEV_ENABLED defines to the main SConstruct? If I understand correctly they should be independent from the platform.

@akien-mga
Copy link
Member Author

As a future improvement, would it make sense to move DEBUG_ENABLED and DEV_ENABLED defines to the main SConstruct? If I understand correctly they should be independent from the platform.

Yeah that would definitely make sense.

@akien-mga akien-mga merged commit d952a84 into godotengine:master Oct 14, 2021
@akien-mga akien-mga deleted the DEV_ENABLED branch October 14, 2021 11:24
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