File tree 1 file changed +7
-2
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -711,7 +711,7 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
711
711
status. signal ( ) == Some ( libc:: SIGILL )
712
712
}
713
713
714
- #[ cfg( windows ) ]
714
+ #[ cfg( not ( unix ) ) ]
715
715
fn is_illegal_instruction ( _status : & ExitStatus ) -> bool {
716
716
false
717
717
}
@@ -1198,7 +1198,7 @@ fn exec_linker(
1198
1198
flush_linked_file ( & output, out_filename) ?;
1199
1199
return output;
1200
1200
1201
- #[ cfg( unix ) ]
1201
+ #[ cfg( not ( windows ) ) ]
1202
1202
fn flush_linked_file ( _: & io:: Result < Output > , _: & Path ) -> io:: Result < ( ) > {
1203
1203
Ok ( ( ) )
1204
1204
}
@@ -1238,6 +1238,11 @@ fn exec_linker(
1238
1238
err. raw_os_error ( ) == Some ( ERROR_FILENAME_EXCED_RANGE )
1239
1239
}
1240
1240
1241
+ #[ cfg( not( any( unix, windows) ) ) ]
1242
+ fn command_line_too_big ( _: & io:: Error ) -> bool {
1243
+ false
1244
+ }
1245
+
1241
1246
struct Escape < ' a > {
1242
1247
arg : & ' a str ,
1243
1248
is_like_msvc : bool ,
You can’t perform that action at this time.
0 commit comments