diff options
| author | Rémi Verschelde | 2018-05-16 22:50:45 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-16 22:50:45 +0200 |
| commit | 82042bdd03a0bd3d11c2c3a814374a2f2f26148d (patch) | |
| tree | 81f065fe3d19647aeef89bd9d4f7cb1103571788 /platform | |
| parent | 9c5dfdaf063e3b3f774e3dcfe66d28f324a340ad (diff) | |
| parent | 975c0516a4e0bf9d27888b859c1b5185a5788f32 (diff) | |
| download | godot-82042bdd03a0bd3d11c2c3a814374a2f2f26148d.tar.gz godot-82042bdd03a0bd3d11c2c3a814374a2f2f26148d.tar.zst godot-82042bdd03a0bd3d11c2c3a814374a2f2f26148d.zip | |
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/javascript/SCsub | 6 | ||||
| -rw-r--r-- | platform/javascript/detect.py | 17 |
2 files changed, 8 insertions, 15 deletions
diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index 5991075e2..98988d97f 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -30,8 +30,8 @@ zip_files = env.InstallAs([ zip_dir.File('godot.wasm'), zip_dir.File('godot.html') ], [ - js_wrapped, - wasm, - '#misc/dist/html/default.html' + js_wrapped, + wasm, + '#misc/dist/html/default.html' ]) env.Zip('#bin/godot', zip_files, ZIPROOT=zip_dir, ZIPSUFFIX='${PROGSUFFIX}${ZIPSUFFIX}', ZIPCOMSTR='Archving $SOURCES as $TARGET') diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index a48cb872e..fc909f661 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -1,5 +1,4 @@ import os -import string import sys @@ -39,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. @@ -48,17 +47,11 @@ def configure(env): # run-time performance. env.Append(CCFLAGS=['-Os']) env.Append(LINKFLAGS=['-Os']) - if env['target'] == 'profile': + 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']) - - 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': + else: env.Append(CPPDEFINES=['DEBUG_ENABLED']) env.Append(CCFLAGS=['-O1', '-g']) env.Append(LINKFLAGS=['-O1', '-g']) |
