summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/check.py b/check.py
index d3a318d9a..72f9bd46c 100755
--- a/check.py
+++ b/check.py
@@ -421,8 +421,9 @@ if has_vanilla_emcc:
if out.strip() != expected.strip():
fail(out, expected)
finally:
- del os.environ['LLVM']
- if not has_vanilla_llvm:
+ if has_vanilla_llvm:
+ del os.environ['LLVM']
+ else:
del os.environ['EMCC_WASM_BACKEND']
print '\n[ checking example testcases... ]\n'