summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-10-25 14:19:12 -0700
committerGitHub <noreply@github.com>2019-10-25 14:19:12 -0700
commit4f9151dec445abb901ae22d8d4db5c5ea8e4c528 (patch)
treef44ae7589260843095321db5f159aeb768921649 /scripts/test
parent8d19d00268a4b1af556008bea933ede869d8a757 (diff)
downloadbinaryen-4f9151dec445abb901ae22d8d4db5c5ea8e4c528.tar.gz
binaryen-4f9151dec445abb901ae22d8d4db5c5ea8e4c528.tar.bz2
binaryen-4f9151dec445abb901ae22d8d4db5c5ea8e4c528.zip
When renaming functions ensure the corresponding GOT.func entry is also renamed (#2382)
Fixes https://github.com/WebAssembly/binaryen/issues/2180
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/generate_lld_tests.py3
-rw-r--r--scripts/test/shared.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/test/generate_lld_tests.py b/scripts/test/generate_lld_tests.py
index b5cb6b140..2279482eb 100755
--- a/scripts/test/generate_lld_tests.py
+++ b/scripts/test/generate_lld_tests.py
@@ -50,7 +50,8 @@ def generate_wast_files(llvm_bin, emscripten_root):
compile_cmd = [
os.path.join(llvm_bin, 'clang'), src_path, '-o', obj_path,
- '--target=wasm32-unknown-unknown-wasm',
+ '--target=wasm32-emscripten',
+ '-mllvm', '-enable-emscripten-sjlj',
'-c',
'-nostdinc',
'-Xclang', '-nobuiltininc',
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 8d30ecaa0..f8d575656 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -43,7 +43,6 @@ def parse_args(args):
action='store_false',
help=('If set, the whole test suite will run to completion independent of'
' earlier errors.'))
-
parser.add_argument(
'--interpreter', dest='interpreter', default='',
help='Specifies the wasm interpreter executable to run tests on.')
@@ -60,7 +59,7 @@ def parse_args(args):
parser.add_argument(
'--out-dir', dest='out_dir', default='',
help=('Specifies a path to the output directory for temp files, which '
- 'is also where the test runner changes directory into.',
+ 'is also where the test runner changes directory into.'
' Default:. out/test under the binaryen root.'))
parser.add_argument(
'--valgrind', dest='valgrind', default='',