diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-16 10:47:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-17 11:57:10 -0800 |
commit | 6f693f31c1e4f2f15ca5bb93ca426ca8c340f460 (patch) | |
tree | 3cd7886d856518445871818806472b3a13f3f667 /check.py | |
parent | 320df8eea98ceeb3aa2339de2bd06f3510f5ad67 (diff) | |
download | binaryen-6f693f31c1e4f2f15ca5bb93ca426ca8c340f460.tar.gz binaryen-6f693f31c1e4f2f15ca5bb93ca426ca8c340f460.tar.bz2 binaryen-6f693f31c1e4f2f15ca5bb93ca426ca8c340f460.zip |
no need to set env var for emcc if using vanilla llvm
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -364,7 +364,11 @@ for wast in tests: print '\n[ checking emcc WASM_BACKEND testcases... (llvm: %s)]\n' % (os.environ.get('LLVM') or 'NULL') -os.environ['WASM_BACKEND'] = '1' +# 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 os.environ.get('LLVM'): + print '(not using vanilla llvm, so settng env var to tell emcc to use wasm backend)' + os.environ['EMCC_WASM_BACKEND'] = '1' try: VANILLA_EMCC = os.path.join('test', 'emscripten', 'emcc') # run emcc to make sure it sets itself up properly, if it was never run before @@ -389,7 +393,8 @@ try: if out.strip() != expected.strip(): fail(out, expected) finally: - del os.environ['WASM_BACKEND'] + if not os.environ.get('LLVM'): + del os.environ['EMCC_WASM_BACKEND'] print '\n[ checking example testcases... ]\n' |