From a0517dbde4df692e041f4fa42036910b1846ea49 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 29 Aug 2017 16:56:56 -0700 Subject: Fix locaion of wasm-merge in auto_update_tests.py (#1151) Also, fix -l and -rpath lib directories so that it can be run out-of-tree --- scripts/test/shared.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/test/shared.py') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index f94f22fe8..aa1f9ae3e 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -102,9 +102,11 @@ if not options.binaryen_bin: else: options.binaryen_bin = 'bin' +options.binaryen_bin = os.path.normpath(options.binaryen_bin) + wasm_dis_filenames = ['wasm-dis', 'wasm-dis.exe'] -if all(map(lambda f: not os.path.isfile(os.path.join(options.binaryen_bin, f)), - wasm_dis_filenames)): +if not any(os.path.isfile(os.path.join(options.binaryen_bin, f)) + for f in wasm_dis_filenames): warn('Binaryen not found (or has not been successfully built to bin/ ?') # Locate Binaryen source directory if not specified. @@ -151,6 +153,7 @@ NODEJS = which('nodejs') or which('node') MOZJS = which('mozjs') EMCC = which('emcc') +BINARYEN_INSTALL_DIR = os.path.dirname(options.binaryen_bin) WASM_OPT = [os.path.join(options.binaryen_bin, 'wasm-opt')] WASM_AS = [os.path.join(options.binaryen_bin, 'wasm-as')] WASM_DIS = [os.path.join(options.binaryen_bin, 'wasm-dis')] -- cgit v1.2.3