diff options
| author | Leon Krause | 2018-05-14 15:11:42 +0200 |
|---|---|---|
| committer | Leon Krause | 2018-05-14 15:31:16 +0200 |
| commit | 975c0516a4e0bf9d27888b859c1b5185a5788f32 (patch) | |
| tree | 693310fb3c5f08e6ea5a7194bcb6a7faff4b74ec /platform/javascript/detect.py | |
| parent | 504ffda8d711b2747bf7efbbc13ca8e427eab6d1 (diff) | |
| download | godot-975c0516a4e0bf9d27888b859c1b5185a5788f32.tar.gz godot-975c0516a4e0bf9d27888b859c1b5185a5788f32.tar.zst godot-975c0516a4e0bf9d27888b859c1b5185a5788f32.zip | |
Diffstat (limited to 'platform/javascript/detect.py')
| -rw-r--r-- | platform/javascript/detect.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 0c3c09b65..fc909f661 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -38,7 +38,7 @@ def configure(env): ## Build type - if env['target'] == 'release' or env['target'] == 'profile': + if env['target'] != 'debug': # Use -Os to prioritize optimizing for reduced file size. This is # particularly valuable for the web platform because it directly # decreases download time. @@ -47,15 +47,11 @@ def configure(env): # run-time performance. env.Append(CCFLAGS=['-Os']) env.Append(LINKFLAGS=['-Os']) - - elif env['target'] == 'release_debug': - env.Append(CPPDEFINES=['DEBUG_ENABLED']) - env.Append(CCFLAGS=['-O2']) - env.Append(LINKFLAGS=['-O2']) - # Retain function names for backtraces at the cost of file size. - env.Append(LINKFLAGS=['--profiling-funcs']) - - elif env['target'] == 'debug': + 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: env.Append(CPPDEFINES=['DEBUG_ENABLED']) env.Append(CCFLAGS=['-O1', '-g']) env.Append(LINKFLAGS=['-O1', '-g']) |
