aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-18 10:47:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-18 10:47:53 -0700
commit695207758b0dccdcacb63eb04ee4eb372841529d (patch)
tree41f87c477118958e812908c19586df96db0ad693
parent939bda64f5f205c3c6ba774e5a69966053fa6222 (diff)
do not use EMCC_OPTIMIZE_NORMALLY in relooper
-rw-r--r--tools/shared.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index b212a9cc..0cfe30ad 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1288,6 +1288,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
emcc_debug = os.environ.get('EMCC_DEBUG')
if emcc_debug: del os.environ['EMCC_DEBUG']
+ emcc_optimize_normally = os.environ.get('EMCC_OPTIMIZE_NORMALLY')
+ if emcc_optimize_normally: del os.environ['EMCC_OPTIMIZE_NORMALLY']
+
def make(opt_level):
raw = relooper + '.raw.js'
Building.emcc(os.path.join('relooper', 'Relooper.cpp'), ['-I' + os.path.join('relooper'), '--post-js',
@@ -1318,6 +1321,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
finally:
os.chdir(curr)
if emcc_debug: os.environ['EMCC_DEBUG'] = emcc_debug
+ if emcc_optimize_normally: os.environ['EMCC_OPTIMIZE_NORMALLY'] = emcc_optimize_normally
if not ok:
logging.error('bootstrapping relooper failed. You may need to manually create relooper.js by compiling it, see src/relooper/emscripten')
1/0