Skip to content

Commit

Permalink
Rollup merge of rust-lang#121194 - beetrees:rustc-raw-args, r=petroch…
Browse files Browse the repository at this point in the history
…enkov

Refactor pre-getopts command line argument handling

Rebased version of rust-lang#111658. I've also fixed the Windows CI failure (although I don't have access to Windows to test it myself).
  • Loading branch information
matthiaskrgr committed Mar 8, 2024
2 parents 1572279 + 865ac89 commit 1bd7383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub fn main() {
});

exit(rustc_driver::catch_with_exit_code(move || {
let mut orig_args: Vec<String> = env::args().collect();
let mut orig_args = rustc_driver::args::raw_args(&early_dcx)?;

let has_sysroot_arg = |args: &mut [String]| -> bool {
if arg_value(args, "--sysroot", |_| true).is_some() {
Expand Down

0 comments on commit 1bd7383

Please sign in to comment.