File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
issue-107495-archive-permissions Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 33// -Clinker-plugin-lto.
44// See https://github.com/rust-lang/rust/pull/50000
55
6- #![ feature( path_file_prefix) ]
7-
86use std:: path:: PathBuf ;
97
108use run_make_support:: {
@@ -92,10 +90,17 @@ fn check_bitcode(instructions: LibBuild) {
9290 llvm_ar ( ) . extract ( ) . arg ( & instructions. output ) . run ( ) ;
9391 }
9492
95- for object in shallow_find_files ( cwd ( ) , |path| {
96- has_prefix ( path, instructions. output . file_prefix ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) )
93+ let objects = shallow_find_files ( cwd ( ) , |path| {
94+ let mut output_path = instructions. output . clone ( ) ;
95+ output_path. set_extension ( "" ) ;
96+ has_prefix ( path, output_path. file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) )
9797 && has_extension ( path, "o" )
98- } ) {
98+ } ) ;
99+ assert ! ( !objects. is_empty( ) ) ;
100+ println ! ( "objects: {:#?}" , objects) ;
101+
102+ for object in objects {
103+ println ! ( "reading bitcode: {}" , object. display( ) ) ;
99104 // All generated object files should be LLVM bitcode files - this will fail otherwise.
100105 llvm_bcanalyzer ( ) . input ( object) . run ( ) ;
101106 }
Original file line number Diff line number Diff line change 1- #[ cfg( unix) ]
2- use run_make_support:: libc;
3-
41#[ cfg( unix) ]
52use std:: os:: unix:: fs:: PermissionsExt ;
63use std:: path:: Path ;
74
5+ #[ cfg( unix) ]
6+ use run_make_support:: libc;
87use run_make_support:: { aux_build, rfs} ;
98
109fn main ( ) {
You can’t perform that action at this time.
0 commit comments