diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index ddace5bb5186..5d895d8a8e8d 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -291,7 +291,7 @@ fn build_command( args.push(features.join(",")); } - if !options.debug { + if !options.debug && !args.contains(&"--profile".to_string()) { args.push("--release".into()); }