@@ -1364,6 +1364,7 @@ impl Default for Options {
1364
1364
cli_forced_local_thinlto_off : false ,
1365
1365
remap_path_prefix : Vec :: new ( ) ,
1366
1366
real_rust_source_base_dir : None ,
1367
+ real_rustc_dev_source_base_dir : None ,
1367
1368
edition : DEFAULT_EDITION ,
1368
1369
json_artifact_notifications : false ,
1369
1370
json_unused_externs : JsonUnusedExterns :: No ,
@@ -2713,6 +2714,10 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
2713
2714
// This is the location used by the `rust-src` `rustup` component.
2714
2715
real_source_base_dir ( "lib/rustlib/src/rust" , "library/std/src/lib.rs" ) ;
2715
2716
2717
+ let real_rustc_dev_source_base_dir =
2718
+ // This is the location used by the `rustc-dev` `rustup` component.
2719
+ real_source_base_dir ( "lib/rustlib/rustc-src/rust" , "compiler/rustc/src/main.rs" ) ;
2720
+
2716
2721
let mut search_paths = vec ! [ ] ;
2717
2722
for s in & matches. opt_strs ( "L" ) {
2718
2723
search_paths. push ( SearchPath :: from_cli_opt (
@@ -2766,6 +2771,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
2766
2771
cli_forced_local_thinlto_off : disable_local_thinlto,
2767
2772
remap_path_prefix,
2768
2773
real_rust_source_base_dir,
2774
+ real_rustc_dev_source_base_dir,
2769
2775
edition,
2770
2776
json_artifact_notifications,
2771
2777
json_unused_externs,
0 commit comments