File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -1902,12 +1902,7 @@ impl Step for Sysroot {
1902
1902
if !path. parent ( ) . is_none_or ( |p| p. ends_with ( & suffix) ) {
1903
1903
return true ;
1904
1904
}
1905
- if !filtered_files. iter ( ) . all ( |f| f != path. file_name ( ) . unwrap ( ) ) {
1906
- builder. verbose_than ( 1 , || println ! ( "ignoring {}" , path. display( ) ) ) ;
1907
- false
1908
- } else {
1909
- true
1910
- }
1905
+ filtered_files. iter ( ) . all ( |f| f != path. file_name ( ) . unwrap ( ) )
1911
1906
} ) ;
1912
1907
}
1913
1908
Original file line number Diff line number Diff line change @@ -1092,13 +1092,6 @@ impl Build {
1092
1092
self . verbosity > level
1093
1093
}
1094
1094
1095
- /// Runs a function if verbosity is greater than `level`.
1096
- fn verbose_than ( & self , level : usize , f : impl Fn ( ) ) {
1097
- if self . is_verbose_than ( level) {
1098
- f ( )
1099
- }
1100
- }
1101
-
1102
1095
fn info ( & self , msg : & str ) {
1103
1096
match self . config . get_dry_run ( ) {
1104
1097
DryRun :: SelfCheck => ( ) ,
@@ -1816,7 +1809,6 @@ impl Build {
1816
1809
if self . config . dry_run ( ) {
1817
1810
return ;
1818
1811
}
1819
- self . verbose_than ( 1 , || println ! ( "Copy/Link {src:?} to {dst:?}" ) ) ;
1820
1812
if src == dst {
1821
1813
return ;
1822
1814
}
@@ -1933,7 +1925,10 @@ impl Build {
1933
1925
return ;
1934
1926
}
1935
1927
let dst = dstdir. join ( src. file_name ( ) . unwrap ( ) ) ;
1936
- self . verbose_than ( 1 , || println ! ( "Install {src:?} to {dst:?}" ) ) ;
1928
+
1929
+ #[ cfg( feature = "tracing" ) ]
1930
+ let _span = trace_io ! ( "install" , ?src, ?dst) ;
1931
+
1937
1932
t ! ( fs:: create_dir_all( dstdir) ) ;
1938
1933
if !src. exists ( ) {
1939
1934
panic ! ( "ERROR: File \" {}\" not found!" , src. display( ) ) ;
You can’t perform that action at this time.
0 commit comments