From 66ec0dd6d1cdf971bb2004da9fcb3bc12d452ea4 Mon Sep 17 00:00:00 2001 From: collinpa <> Date: Fri, 29 Nov 2024 19:32:04 +0800 Subject: [PATCH] fix: read ignored bin_cargo_args from config file --- src/config/bin_package.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/bin_package.rs b/src/config/bin_package.rs index 9d9558bc..e3364a13 100644 --- a/src/config/bin_package.rs +++ b/src/config/bin_package.rs @@ -121,6 +121,11 @@ impl BinPackage { src_paths.push(rel_dir.join("src")); } + let cargo_args = cli + .bin_cargo_args + .clone() + .or_else(|| config.bin_cargo_args.clone()); + log::debug!("BEFORE BIN {:?}", config.bin_cargo_command); Ok(Self { name, @@ -135,7 +140,7 @@ impl BinPackage { target_triple: config.bin_target_triple.clone(), target_dir: config.bin_target_dir.clone(), cargo_command: config.bin_cargo_command.clone(), - cargo_args: cli.bin_cargo_args.clone(), + cargo_args, bin_args: bin_args.map(ToOwned::to_owned), }) }