sdk: Fix args after "--" in build-bpf and test-bpf (#27221)
This commit is contained in:
parent
0d6a223e63
commit
68a5e05f81
|
@ -26,8 +26,9 @@ fn main() {
|
||||||
args.remove(0);
|
args.remove(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
args.push("--arch".to_string());
|
let index = args.iter().position(|x| x == "--").unwrap_or(args.len());
|
||||||
args.push("bpf".to_string());
|
args.insert(index, "bpf".to_string());
|
||||||
|
args.insert(index, "--arch".to_string());
|
||||||
print!("cargo-build-bpf child: {}", program.display());
|
print!("cargo-build-bpf child: {}", program.display());
|
||||||
for a in &args {
|
for a in &args {
|
||||||
print!(" {}", a);
|
print!(" {}", a);
|
||||||
|
|
|
@ -32,8 +32,9 @@ fn main() {
|
||||||
args.remove(0);
|
args.remove(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
args.push("--arch".to_string());
|
let index = args.iter().position(|x| x == "--").unwrap_or(args.len());
|
||||||
args.push("bpf".to_string());
|
args.insert(index, "bpf".to_string());
|
||||||
|
args.insert(index, "--arch".to_string());
|
||||||
print!("cargo-test-bpf child: {}", program.display());
|
print!("cargo-test-bpf child: {}", program.display());
|
||||||
for a in &args {
|
for a in &args {
|
||||||
print!(" {}", a);
|
print!(" {}", a);
|
||||||
|
|
Loading…
Reference in New Issue