Skip to content

Commit

Permalink
add unit for --sysroot flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Mar 24, 2024
1 parent 0f83498 commit 341ce66
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build_system/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ impl TestArg {
return Err("Expected an argument after `--features`, found nothing".into())
}
},
"--sysroot" => match args.next() {
Some(feature) if !feature.is_empty() => {
test_arg
.flags
.extend_from_slice(&["--sysroot".into(), feature]);
}
_ => {
return Err("Expected an argument after `--sysroot`, found nothing".into())
}
},
"--use-system-gcc" => {
println!("Using system GCC");
test_arg.use_system_gcc = true;
Expand Down

0 comments on commit 341ce66

Please sign in to comment.