diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-20 10:46:41 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-20 10:46:41 -0800 |
commit | daf75cc0649ad6e615de98afdc10154a14af8e9b (patch) | |
tree | a4766865ba8106bbda914d032861d953be83b31f | |
parent | 64923a04cf9795482cc55264b75d1294c32a007d (diff) | |
download | binaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.tar.gz binaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.tar.bz2 binaryen-daf75cc0649ad6e615de98afdc10154a14af8e9b.zip |
fix non-vanilla llvm testing of wasm-backend testcases
-rwxr-xr-x | check.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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'] |