summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-01-06 15:04:42 -0800
committerGitHub <noreply@github.com>2022-01-06 15:04:42 -0800
commit8c0f53d236f664086405870321e5887aaed39f3f (patch)
treee2d8153967535df252db9c98af584841cf7c5a38 /src/wasm-interpreter.h
parent5049f077ae2d21166dc8ee4c3057bdc48cb3d94c (diff)
downloadbinaryen-8c0f53d236f664086405870321e5887aaed39f3f.tar.gz
binaryen-8c0f53d236f664086405870321e5887aaed39f3f.tar.bz2
binaryen-8c0f53d236f664086405870321e5887aaed39f3f.zip
[ctor-eval] Add --ignore-external-input option (#4428)
This is meant to address one of the main limitations of wasm-ctor-eval in emscripten atm, that libc++ global ctors will read env vars, which means they call an import, which stops us from evalling, emscripten-core/emscripten#15403 (comment) To handle that, this adds an option to ignore external input. When set, we can assume that no env vars will be read, no reading from stdin, no arguments to main(), etc. Perhaps these could each be separate options, but I think keeping it simple for now might be good enough.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index ecfc00d93..600310c9c 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -35,10 +35,6 @@
#include "wasm-traversal.h"
#include "wasm.h"
-#ifdef WASM_INTERPRETER_DEBUG
-#include "wasm-printing.h"
-#endif
-
namespace wasm {
struct WasmException {