File tree 2 files changed +12
-8
lines changed
issue-107495-archive-permissions
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 3
3
// -Clinker-plugin-lto.
4
4
// See https://github.com/rust-lang/rust/pull/50000
5
5
6
- #![ feature( path_file_prefix) ]
7
-
8
6
use std:: path:: PathBuf ;
9
7
10
8
use run_make_support:: {
@@ -92,10 +90,17 @@ fn check_bitcode(instructions: LibBuild) {
92
90
llvm_ar ( ) . extract ( ) . arg ( & instructions. output ) . run ( ) ;
93
91
}
94
92
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 ( ) )
97
97
&& 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( ) ) ;
99
104
// All generated object files should be LLVM bitcode files - this will fail otherwise.
100
105
llvm_bcanalyzer ( ) . input ( object) . run ( ) ;
101
106
}
Original file line number Diff line number Diff line change 1
- #[ cfg( unix) ]
2
- use run_make_support:: libc;
3
-
4
1
#[ cfg( unix) ]
5
2
use std:: os:: unix:: fs:: PermissionsExt ;
6
3
use std:: path:: Path ;
7
4
5
+ #[ cfg( unix) ]
6
+ use run_make_support:: libc;
8
7
use run_make_support:: { aux_build, rfs} ;
9
8
10
9
fn main ( ) {
You can’t perform that action at this time.
0 commit comments