Skip to content

Commit

Permalink
chore: keep name section in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed May 22, 2024
1 parent e8786f5 commit 4f890a2
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 4f890a2

Please sign in to comment.