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 {
676
676
println ! ( "{}" , targets. join( "\n " ) ) ;
677
677
}
678
678
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
+ ) ,
679
683
TargetSpec => println ! ( "{}" , sess. target. target. to_json( ) . pretty( ) ) ,
680
684
FileNames | CrateName => {
681
685
let input = input. unwrap_or_else ( || {
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ impl ExternEntry {
391
391
pub enum PrintRequest {
392
392
FileNames ,
393
393
Sysroot ,
394
+ TargetLibdir ,
394
395
CrateName ,
395
396
Cfg ,
396
397
TargetList ,
@@ -1344,6 +1345,7 @@ fn collect_print_requests(
1344
1345
"crate-name" => PrintRequest :: CrateName ,
1345
1346
"file-names" => PrintRequest :: FileNames ,
1346
1347
"sysroot" => PrintRequest :: Sysroot ,
1348
+ "target-libdir" => PrintRequest :: TargetLibdir ,
1347
1349
"cfg" => PrintRequest :: Cfg ,
1348
1350
"target-list" => PrintRequest :: TargetList ,
1349
1351
"target-cpus" => PrintRequest :: TargetCPUs ,
You can’t perform that action at this time.
0 commit comments