diff options
author | eska <eska@eska.me> | 2016-10-21 00:02:44 +0200 |
---|---|---|
committer | eska <eska@eska.me> | 2016-10-21 00:02:44 +0200 |
commit | fa219e02d74f9b249270b6610a88319925908f89 (patch) | |
tree | b30943471a5fe5dffe608be6a8baed0943f59a66 /platform/javascript | |
parent | 9012dfb8eb7276e29d567d27b49f6fea317bd83c (diff) |
Remove JavaScript compilation option `compress`.
This functionality has been removed from Emscripten in version 1.36.13,
server-side compression is recommended instead.
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/detect.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index aeff5a1a34..7144476302 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -18,8 +18,7 @@ def can_build(): def get_opts(): return [ - ['compress','Compress JS Executable','no'], - ['javascript_eval','Enable JavaScript eval interface','yes'] + ['javascript_eval','Enable JavaScript eval interface','yes'], ] def get_flags(): @@ -94,12 +93,6 @@ def configure(env): if env['javascript_eval'] == 'yes': env.Append(CPPFLAGS=['-DJAVASCRIPT_EVAL_ENABLED']) - if (env["compress"]=="yes"): - lzma_binpath = em_path+"/third_party/lzma.js/lzma-native" - lzma_decoder = em_path+"/third_party/lzma.js/lzma-decoder.js" - lzma_dec = "LZMA.decompress" - env.Append(LINKFLAGS=['--compression',lzma_binpath+","+lzma_decoder+","+lzma_dec]) - env.Append(LINKFLAGS=['-s','ASM_JS=1']) env.Append(LINKFLAGS=['-O2']) #env.Append(LINKFLAGS=['-g4']) |