aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-26 20:19:44 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-02-26 20:19:44 -0500
commitf4cceb902a31810215858393dd80c24ef62f6f15 (patch)
tree1b5fc5ed21e1a62ddffb6bb8a9d2474e6c544253 /emcc
parent722c7b69e783724a3695bb85ecf22e9ae275729b (diff)
fix DEBUG ? 2 checks
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index a6f0c12d..0e7fc1ea 100755
--- a/emcc
+++ b/emcc
@@ -1244,7 +1244,7 @@ try:
def flush_js_optimizer_queue():
global final, js_optimizer_queue
if len(js_optimizer_queue) > 0 and not(len(js_optimizer_queue) == 1 and js_optimizer_queue[0] == 'last'):
- if DEBUG < 2:
+ if DEBUG != '2':
if shared.Settings.ASM_JS:
js_optimizer_queue = ['asm'] + js_optimizer_queue
if DEBUG: print >> sys.stderr, 'emcc: applying js optimization passes:', js_optimizer_queue
@@ -1263,7 +1263,7 @@ try:
if opt_level >= 1:
if DEBUG: print >> sys.stderr, 'emcc: running pre-closure post-opts'
- if DEBUG >= 2:
+ if DEBUG == '2':
# Clean up the syntax a bit
final = shared.Building.js_optimizer(final, [], jcache)
if DEBUG: save_intermediate('pretty')