summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-31 12:43:57 +0100
committerGitHub <noreply@github.com>2016-10-31 12:43:57 +0100
commit7384a6519f377ff926906ae37844c6e8044ae083 (patch)
treed1e1b9bebd955137d0d308d8f4673d7895c1e39a
parent434d120226c31fea9c1ff905c37486d6ed58633a (diff)
parentfa219e02d74f9b249270b6610a88319925908f89 (diff)
downloadredot-engine-7384a6519f377ff926906ae37844c6e8044ae083.tar.gz
Merge pull request #6993 from eska014/remove-js-compression
Remove JavaScript compilation option 'compress'.
-rw-r--r--platform/javascript/detect.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index e1f91cf948..b1277bfc05 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():
@@ -85,12 +84,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'])