diff --git a/crates/moon/src/cli.rs b/crates/moon/src/cli.rs index f2c10824..6eb52e4a 100644 --- a/crates/moon/src/cli.rs +++ b/crates/moon/src/cli.rs @@ -216,7 +216,7 @@ impl BuildFlags { } else if self.no_strip { false } else { - self.debug == false + !self.debug } } } diff --git a/crates/moon/src/cli/test.rs b/crates/moon/src/cli/test.rs index cbf268ae..078a9646 100644 --- a/crates/moon/src/cli/test.rs +++ b/crates/moon/src/cli/test.rs @@ -169,7 +169,7 @@ fn run_test_internal( } else if cmd.build_flags.no_strip { false } else { - moonc_opt.build_opt.debug_flag == false + cmd.build_flags.release }; moonc_opt.link_opt.debug_flag = !cmd.build_flags.release;