diff options
author | Alon Zakai <azakai@google.com> | 2022-01-06 15:04:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 15:04:42 -0800 |
commit | 8c0f53d236f664086405870321e5887aaed39f3f (patch) | |
tree | e2d8153967535df252db9c98af584841cf7c5a38 /test/lit/help | |
parent | 5049f077ae2d21166dc8ee4c3057bdc48cb3d94c (diff) | |
download | binaryen-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 'test/lit/help')
-rw-r--r-- | test/lit/help/wasm-ctor-eval.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lit/help/wasm-ctor-eval.test b/test/lit/help/wasm-ctor-eval.test index cf0671c81..364ac5d4c 100644 --- a/test/lit/help/wasm-ctor-eval.test +++ b/test/lit/help/wasm-ctor-eval.test @@ -19,6 +19,9 @@ ;; CHECK-NEXT: --ctors,-c Comma-separated list of global ;; CHECK-NEXT: constructor functions to evaluate ;; CHECK-NEXT: +;; CHECK-NEXT: --ignore-external-input,-ipi Assumes no env vars are to be read, stdin +;; CHECK-NEXT: is empty, etc. +;; CHECK-NEXT: ;; CHECK-NEXT: ;; CHECK-NEXT: Tool options: ;; CHECK-NEXT: ------------- |