summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test')
-rw-r--r--scripts/test/shared.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 65f1f6e74..88d6688fa 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -102,6 +102,10 @@ if not options.binaryen_bin:
else:
options.binaryen_bin = 'bin'
+# ensure BINARYEN_ROOT is set up
+os.environ['BINARYEN_ROOT'] = os.path.dirname(os.path.abspath(
+ options.binaryen_bin))
+
options.binaryen_bin = os.path.normpath(options.binaryen_bin)
wasm_dis_filenames = ['wasm-dis', 'wasm-dis.exe']