Skip to content

Commit

Permalink
Ignore a wasm2wat error that we don't care about
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed May 16, 2018
1 parent 7ed6d79 commit 574fade
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion compiler/base/cargo-wasm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ for wasm in $(find target/ -name '*wasm' -not -path '*/deps/*'); do
--fold-exprs \
--generate-names \
--inline-exports \
--ignore-custom-section-errors \
-o "${output}.wat" \
"${wasm}.gc"
"${wasm}.gc" \
2> >(grep -v 'invalid linking metadata version: 3' 1>&2)

# wasm2wat spits out an error that we don't care about, so hide it
# https://github.com/WebAssembly/wabt/issues/842
# https://stackoverflow.com/a/15936384/155423
done

0 comments on commit 574fade

Please sign in to comment.