Skip to content

Commit

Permalink
Configure walrus to generate DWARF/names at the right times
Browse files Browse the repository at this point in the history
Fixes ##1254
  • Loading branch information
fitzgen committed Feb 14, 2019
1 parent c49b87b commit 8b96c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ base64 = "0.9"
failure = "0.1.2"
rustc-demangle = "0.1.13"
tempfile = "3.0"
walrus = "0.1"
walrus = "0.2"
wasm-bindgen-shared = { path = "../shared", version = '=0.2.36' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.36' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.36' }
2 changes: 2 additions & 0 deletions crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ impl Bindgen {
// include shared memory, so it fails that part of
// validation!
.strict_validate(false)
.generate_dwarf(self.keep_debug)
.generate_names(!self.remove_name_section)
.parse(&contents)
.context("failed to parse input file as wasm")?;
let stem = match &self.out_name {
Expand Down

0 comments on commit 8b96c85

Please sign in to comment.