File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,8 @@ fn main() {
342
342
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
343
343
let env_snapshot = env::vars_os().collect::<Vec<_>>();
344
344
345
+ let args = rustc_driver::args::raw_args(&early_dcx).unwrap_or_else(|_| std::process::exit(rustc_driver::EXIT_FAILURE));
346
+
345
347
// If the environment asks us to actually be rustc, then do that.
346
348
if let Some(crate_kind) = env::var_os("MIRI_BE_RUSTC") {
347
349
// Earliest rustc setup.
@@ -359,7 +361,7 @@ fn main() {
359
361
360
362
// We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
361
363
run_compiler(
362
- env:: args().collect() ,
364
+ args,
363
365
target_crate,
364
366
&mut MiriBeRustCompilerCalls { target_crate },
365
367
using_internal_features,
@@ -382,7 +384,7 @@ fn main() {
382
384
383
385
// If user has explicitly enabled/disabled isolation
384
386
let mut isolation_enabled: Option<bool> = None;
385
- for arg in env:: args() {
387
+ for arg in args {
386
388
if rustc_args.is_empty() {
387
389
// Very first arg: binary name.
388
390
rustc_args.push(arg);
You can’t perform that action at this time.
0 commit comments