summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-15 17:12:27 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-17 11:57:08 -0800
commitd0876f3fef94b59ae1bc3803c3c500529a846e56 (patch)
tree811e33238529c3035084e11af1c6388de6b19b4e /check.py
parent0284de4884e77a63eeb23fcde5174d173dab9101 (diff)
downloadbinaryen-d0876f3fef94b59ae1bc3803c3c500529a846e56.tar.gz
binaryen-d0876f3fef94b59ae1bc3803c3c500529a846e56.tar.bz2
binaryen-d0876f3fef94b59ae1bc3803c3c500529a846e56.zip
set LLVM env var, so emcc can find the waterfall llvm build
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/check.py b/check.py
index ab72aa980..0867c2fa7 100755
--- a/check.py
+++ b/check.py
@@ -111,7 +111,11 @@ def fetch_waterfall():
print '(noting local revision)'
open(os.path.join('test', 'local-revision'), 'w').write(rev)
+def setup_waterfall():
+ os.environ['LLVM'] = os.path.abspath(os.path.join(WATERFALL_BUILD, 'llvm-install', 'bin'))
+
fetch_waterfall()
+setup_waterfall()
# tests
@@ -357,7 +361,7 @@ for c in sorted(os.listdir(os.path.join('test', 'wasm_backend'))):
expected = open(os.path.join('test', 'wasm_backend', base + '.txt')).read()
command = [os.path.join('test', 'emscripten', 'emcc'), '-o', 'a.wasm.js', '-s', 'BINARYEN="' + os.getcwd() + '"', os.path.join('test', 'wasm_backend', c), '-O1', '-s', 'WASM_BACKEND=1', '-s', 'ONLY_MY_CODE=1']
print '....' + ' '.join(command)
- subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ subprocess.check_call(command)
if has_node:
proc = subprocess.Popen(['nodejs', 'a.wasm.js'], stdout=subprocess.PIPE)
out, err = proc.communicate()