File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -676,6 +676,10 @@ impl RustcDefaultCalls {
676676 println ! ( "{}" , targets. join( "\n " ) ) ;
677677 }
678678 Sysroot => println ! ( "{}" , sess. sysroot. display( ) ) ,
679+ TargetLibdir => println ! (
680+ "{}" ,
681+ sess. target_tlib_path. as_ref( ) . unwrap_or( & sess. host_tlib_path) . dir. display( )
682+ ) ,
679683 TargetSpec => println ! ( "{}" , sess. target. target. to_json( ) . pretty( ) ) ,
680684 FileNames | CrateName => {
681685 let input = input. unwrap_or_else ( || {
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ impl ExternEntry {
391391pub enum PrintRequest {
392392 FileNames ,
393393 Sysroot ,
394+ TargetLibdir ,
394395 CrateName ,
395396 Cfg ,
396397 TargetList ,
@@ -1344,6 +1345,7 @@ fn collect_print_requests(
13441345 "crate-name" => PrintRequest :: CrateName ,
13451346 "file-names" => PrintRequest :: FileNames ,
13461347 "sysroot" => PrintRequest :: Sysroot ,
1348+ "target-libdir" => PrintRequest :: TargetLibdir ,
13471349 "cfg" => PrintRequest :: Cfg ,
13481350 "target-list" => PrintRequest :: TargetList ,
13491351 "target-cpus" => PrintRequest :: TargetCPUs ,
You can’t perform that action at this time.
0 commit comments