summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-20 10:46:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-20 10:46:41 -0800
commitdaf75cc0649ad6e615de98afdc10154a14af8e9b (patch)
treea4766865ba8106bbda914d032861d953be83b31f
parent64923a04cf9795482cc55264b75d1294c32a007d (diff)
downloadbinaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.tar.gz
binaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.tar.bz2
binaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.zip
fix non-vanilla llvm testing of wasm-backend testcases
-rwxr-xr-xcheck.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/check.py b/check.py
index fc735c024..d3a318d9a 100755
--- a/check.py
+++ b/check.py
@@ -390,13 +390,14 @@ if has_vanilla_emcc:
print '\n[ checking emcc WASM_BACKEND testcases...]\n'
- # if we did not set vanilla llvm, then we must set this env var to make emcc use the wasm backend.
- # or, if we are using vanilla llvm, things should just work.
- if not has_vanilla_llvm:
- print '(not using vanilla llvm, so setting env var to tell emcc to use wasm backend)'
- os.environ['EMCC_WASM_BACKEND'] = '1'
try:
- os.environ['LLVM'] = BIN_DIR # use the vanilla LLVM
+ if has_vanilla_llvm:
+ os.environ['LLVM'] = BIN_DIR # use the vanilla LLVM
+ else:
+ # if we did not set vanilla llvm, then we must set this env var to make emcc use the wasm backend.
+ # (if we are using vanilla llvm, things should just work)
+ print '(not using vanilla llvm, so setting env var to tell emcc to use wasm backend)'
+ os.environ['EMCC_WASM_BACKEND'] = '1'
VANILLA_EMCC = os.path.join('test', 'emscripten', 'emcc')
# run emcc to make sure it sets itself up properly, if it was never run before
command = [VANILLA_EMCC, '-v']