From cd21cc683a565a775b31aad4bd1e61d6c791d5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 15 Oct 2021 08:39:29 +0200 Subject: SCons: Set `DEBUG_ENABLED` and `DEV_ENABLED` in SConstruct They're the same for all platforms so they don't need to be repeated in all platform definitions. --- platform/javascript/detect.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'platform/javascript') diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 9494ab6fa5..891ae419bd 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -77,12 +77,9 @@ def configure(env): env.Append(LINKFLAGS=["-Os"]) if env["target"] == "release_debug": - env.Append(CPPDEFINES=["DEBUG_ENABLED"]) # Retain function names for backtraces at the cost of file size. env.Append(LINKFLAGS=["--profiling-funcs"]) else: # "debug" - env.Append(CPPDEFINES=["DEBUG_ENABLED"]) - env.Append(CPPDEFINES=["DEV_ENABLED"]) env.Append(CCFLAGS=["-O1", "-g"]) env.Append(LINKFLAGS=["-O1", "-g"]) env["use_assertions"] = True -- cgit v1.2.3