aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-03 10:57:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-03 10:57:33 -0700
commite91ceb07780515b60568e81432a0ec0e0ce9f24b (patch)
treee2b9a4ff30b406ac8ec5664dca7a2140b57835f6 /emcc
parentbe93f604b8c5b529814efacd729455856e96ebf0 (diff)
fix js_opts definition
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 7ae19866..63435cc9 100755
--- a/emcc
+++ b/emcc
@@ -933,7 +933,7 @@ try:
if default_cxx_std:
newargs = newargs + [default_cxx_std]
- if js_opts is None: js_opts = True
+ if js_opts is None: js_opts = opt_level >= 1
if llvm_opts is None: llvm_opts = LLVM_OPT_LEVEL[opt_level]
if llvm_lto is None and opt_level >= 3: llvm_lto = 3
if opt_level == 0: debug_level = 4