Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build_system/src/abi_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ fn show_usage() {

pub fn run() -> Result<(), String> {
let mut args = std::env::args().skip(2);
// FractalFir: In the future, I'd like to add some more subcommands / options.
// So, this loop ought to stay for that purpose. It should also stay as a while loop(to parse args)
#[allow(clippy::never_loop, clippy::while_let_on_iterator)]
while let Some(arg) = args.next() {
match arg.as_str() {
"--help" => {
show_usage();
return Ok(());
}
_ => return Err(format!("Unknown option {}", arg)),
_ => return Err(format!("Unknown option {arg:?}")),
}
}
// Ensure that we have a cloned version of abi-cafe on hand.
Expand Down Expand Up @@ -56,7 +59,7 @@ pub fn run() -> Result<(), String> {
&"c_calls_cg_gcc",
];
// Run ABI cafe.
run_command_with_output(cmd, Some(&Path::new("clones/abi-cafe")))?;
run_command_with_output(cmd, Some(Path::new("clones/abi-cafe")))?;

Ok(())
}