mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Add config
option for CargoArgs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
0c60a2a667
commit
94550dd5c6
@ -148,6 +148,10 @@ fn build_kernel_elf(
|
||||
.arg(cargo_target_directory.as_ref());
|
||||
command.args(COMMON_CARGO_ARGS);
|
||||
command.arg("--profile=".to_string() + &args.profile);
|
||||
for override_config in &args.override_configs {
|
||||
command.arg("--config").arg(override_config);
|
||||
}
|
||||
|
||||
let status = command.status().unwrap();
|
||||
if !status.success() {
|
||||
error_msg!("Cargo build failed");
|
||||
|
Reference in New Issue
Block a user