Skip to content

Commit

Permalink
chore: keep name section in debug builds (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun authored May 22, 2024
1 parent ca43998 commit 87cc7d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ impl WasiVirt {
OptimizationOptions::new_opt_level_2()
.shrink_level(ShrinkLevel::Level1)
.enable_feature(Feature::All)
.debug_info(self.debug)
.run(&tmp_input, &tmp_output)
.with_context(|| "Unable to apply wasm-opt optimization to virt. This can be disabled with wasm_opt: false.")
.or_else(|e| {
Expand Down

0 comments on commit 87cc7d7

Please sign in to comment.