Skip to content

Commit 33e3f24

Browse files
authored
Fixed inverted wasm-opt condition (#3930)
# Description of Changes Reverted the incorrect inversion of `build_debug` condition introduced by bb43213 that resulted in only debug builds being optimized instead of only release ones, as the comment just below says. # API and ABI breaking changes None. # Expected complexity level and risk ### 1. # Testing - [x] Manual testing - [x] Personal experience (saw `.opt.wasm` files disappear at some point)
1 parent 6694211 commit 33e3f24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/cli/src/tasks/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn build(
2727

2828
if lang == ModuleLanguage::Javascript {
2929
Ok((output_path, "Js"))
30-
} else if !build_debug {
30+
} else if build_debug {
3131
Ok((output_path, "Wasm"))
3232
} else {
3333
// for release builds, optimize wasm modules with wasm-opt

0 commit comments

Comments
 (0)