aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-16 21:15:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-16 21:15:02 -0800
commit3c4f29d187ce68f6e0b21a59eb8399a7c6e6eb16 (patch)
tree6a87880074303356a0ee6dad9efa4019f2e5b64b /tests
parentcea0be49c30ce0952d8e60ddaafc94cd46edbad7 (diff)
make asm2g use SAFE_HEAP in fastcomp
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index a884ea75..5aab48f5 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6422,7 +6422,10 @@ o2 = make_run("o2", compiler=CLANG, emcc_args=["-O2", "-s", "ASM_JS=0", "-s", "J
asm1 = make_run("asm1", compiler=CLANG, emcc_args=["-O1"])
asm2 = make_run("asm2", compiler=CLANG, emcc_args=["-O2"])
asm2f = make_run("asm2f", compiler=CLANG, emcc_args=["-O2", "-s", "PRECISE_F32=1"])
-asm2g = make_run("asm2g", compiler=CLANG, emcc_args=["-O2", "-g", "-s", "ASSERTIONS=1", "--memory-init-file", "1", "-s", "CHECK_HEAP_ALIGN=1"])
+if os.environ.get('EMCC_FAST_COMPILER') == '1':
+ asm2g = make_run("asm2g", compiler=CLANG, emcc_args=["-O2", "-g", "-s", "ASSERTIONS=1", "--memory-init-file", "1", "-s", "SAFE_HEAP=1"])
+else:
+ asm2g = make_run("asm2g", compiler=CLANG, emcc_args=["-O2", "-g", "-s", "ASSERTIONS=1", "--memory-init-file", "1", "-s", "CHECK_HEAP_ALIGN=1"])
asm2x86 = make_run("asm2x86", compiler=CLANG, emcc_args=["-O2", "-g", "-s", "CHECK_HEAP_ALIGN=1"], env={"EMCC_LLVM_TARGET": "i386-pc-linux-gnu"})
# Make custom runs with various options