Skip to content

Commit 1bd7383

Browse files
authored
Rollup merge of rust-lang#121194 - beetrees:rustc-raw-args, r=petrochenkov
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).
2 parents 1572279 + 865ac89 commit 1bd7383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub fn main() {
190190
});
191191

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

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

0 commit comments

Comments
 (0)