diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-23 16:45:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 16:45:12 +0200 |
commit | f74491fdee9bc2d68668137fbacd8f3a7e7e8df7 (patch) | |
tree | b5f98590d90e8545b102f67de3e2f61f1fcd6404 /SConstruct | |
parent | 56e847ef653ce2b818b9f2095452b6c0c0c44d54 (diff) | |
parent | 26e9145c26e6a6c2794300a4a7cf5b19e8b6be37 (diff) |
Merge pull request #66303 from akien-mga/scons-cleanup-debug-defines
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 200e8e5984..b64e0bddd8 100644 --- a/SConstruct +++ b/SConstruct @@ -386,6 +386,9 @@ if env_base["target"] == "debug": # DEV_ENABLED enables *engine developer* code which should only be compiled for those # working on the engine itself. env_base.Append(CPPDEFINES=["DEV_ENABLED"]) +else: + # Disable assert() for production targets (only used in thirdparty code). + env_base.Append(CPPDEFINES=["NDEBUG"]) # SCons speed optimization controlled by the `fast_unsafe` option, which provide # more than 10 s speed up for incremental rebuilds. @@ -669,7 +672,6 @@ if selected_platform in platform_list: print(" Use `tools=no target=release` to build a release export template.") Exit(255) suffix += ".opt" - env.Append(CPPDEFINES=["NDEBUG"]) elif env["target"] == "release_debug": if env["tools"]: suffix += ".opt.tools" |