Fix cargo-build-bpf removing a wrong command line option (#30848)

This commit is contained in:
Dmitri Makarov 2023-03-22 12:37:33 -04:00 committed by GitHub
parent 9a1d5ea95d
commit db9623db06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -30,9 +30,6 @@ fn main() {
args.remove(0);
}
}
let index = args.iter().position(|x| x == "--").unwrap_or(args.len());
args.insert(index, "bpf".to_string());
args.insert(index, "--arch".to_string());
info!("cargo-build-bpf child: {}", program.display());
for a in &args {
info!(" {}", a);