From 5b8ecadf5d841f18e7791c43eba182e4f1865efb Mon Sep 17 00:00:00 2001 From: amrbashir Date: Tue, 14 Feb 2023 15:23:43 +0200 Subject: [PATCH] fix(cli): detect `--profile`, closes #6255 --- tooling/cli/src/interface/rust/desktop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }