diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-12-03 15:35:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 15:35:35 -0800 |
commit | d53c64875ff0367dbc28ccea3d3299809fd8ee36 (patch) | |
tree | 770e88d288355451fe1db3bbaebbb27c0532fecd /test | |
parent | 3d98b5bb767a2bacf791ad000e75d4ed8df1a385 (diff) | |
download | binaryen-d53c64875ff0367dbc28ccea3d3299809fd8ee36.tar.gz binaryen-d53c64875ff0367dbc28ccea3d3299809fd8ee36.tar.bz2 binaryen-d53c64875ff0367dbc28ccea3d3299809fd8ee36.zip |
Add --strip that removes debug info (#1787)
This is sort of like --strip on a native binary. The more specific use case for us is e.g. you link with a library that has -g in its CFLAGS, but you don't want debug info in your final executable (I hit this with poppler now). We can make emcc pass this to binaryen if emcc is not building an output with intended debug info.
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/strip.bin.txt | 15 | ||||
-rw-r--r-- | test/passes/strip.wasm | bin | 0 -> 771 bytes |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/passes/strip.bin.txt b/test/passes/strip.bin.txt new file mode 100644 index 000000000..e11a0a6f7 --- /dev/null +++ b/test/passes/strip.bin.txt @@ -0,0 +1,15 @@ +(module + (type $0 (func (result i32))) + (import "env" "__linear_memory" (memory $0 0)) + (import "env" "__indirect_function_table" (table $timport$1 0 anyfunc)) + (func $0 (; 0 ;) (type $0) (result i32) + (local $0 i32) + (set_local $0 + (i32.const 1) + ) + (return + (get_local $0) + ) + ) + ;; custom section "zinking", size 28 +) diff --git a/test/passes/strip.wasm b/test/passes/strip.wasm Binary files differnew file mode 100644 index 000000000..59065683c --- /dev/null +++ b/test/passes/strip.wasm |