summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-07-09 13:30:46 -0700
committerGitHub <noreply@github.com>2021-07-09 13:30:46 -0700
commit22167e5c6e34773a9fbc52e11648a081d2731ca3 (patch)
tree5e6781b411c220b87d2bfe9485a42e2b0c06da8d
parentf77e8ddc8c0da06cc0cd2c063237660e8ec4020b (diff)
downloadbinaryen-22167e5c6e34773a9fbc52e11648a081d2731ca3.tar.gz
binaryen-22167e5c6e34773a9fbc52e11648a081d2731ca3.tar.bz2
binaryen-22167e5c6e34773a9fbc52e11648a081d2731ca3.zip
Fix the fuzzer on wasm2c2wasm: emcc must request d8 support now (#3975)
Emscripten stopped emitting shell support code by default (as most users run node.js, but here we are literally fuzzing d8). Fixes #3967
-rwxr-xr-xscripts/fuzz_opt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py
index e4299639f..ab6d457dd 100755
--- a/scripts/fuzz_opt.py
+++ b/scripts/fuzz_opt.py
@@ -596,6 +596,7 @@ class CompareVMs(TestCaseHandler):
os.path.join(self.wasm2c_dir, 'wasm-rt-impl.c'),
'-I' + self.wasm2c_dir,
'-lm',
+ '-s', 'ENVIRONMENT=shell',
'-s', 'ALLOW_MEMORY_GROWTH']
# disable the signal handler: emcc looks like unix, but wasm has
# no signals