diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-08 13:22:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-08 13:22:25 +0100 |
| commit | 1bd73835d39cd6d65c950375645f084830766200 (patch) | |
| tree | d4a58a5b320c15906de57197f6fd766b811a5ee6 | |
| parent | 15722797fe6879eef2c35f95b8507d260b85bf45 (diff) | |
| parent | 865ac89dbd26780e9a39815516c07c6e6148a4bb (diff) | |
| download | rust-1bd73835d39cd6d65c950375645f084830766200.tar.gz rust-1bd73835d39cd6d65c950375645f084830766200.zip | |
Rollup merge of #121194 - beetrees:rustc-raw-args, r=petrochenkov
Refactor pre-getopts command line argument handling Rebased version of #111658. I've also fixed the Windows CI failure (although I don't have access to Windows to test it myself).
| -rw-r--r-- | src/driver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs index 8fc66644632..9e42abbc9aa 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -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() { |
