Adjust some #[cfg]
s to take non-Unix non-Windows operating systems into account
This commit is contained in:
parent
04fce73196
commit
00c08727c8
@ -711,7 +711,7 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
|
||||
status.signal() == Some(libc::SIGILL)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[cfg(not(unix))]
|
||||
fn is_illegal_instruction(_status: &ExitStatus) -> bool {
|
||||
false
|
||||
}
|
||||
@ -1198,7 +1198,7 @@ fn exec_linker(
|
||||
flush_linked_file(&output, out_filename)?;
|
||||
return output;
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(not(windows))]
|
||||
fn flush_linked_file(_: &io::Result<Output>, _: &Path) -> io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
@ -1238,6 +1238,11 @@ fn exec_linker(
|
||||
err.raw_os_error() == Some(ERROR_FILENAME_EXCED_RANGE)
|
||||
}
|
||||
|
||||
#[cfg(not(any(unix, windows)))]
|
||||
fn command_line_too_big(_: &io::Error) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
struct Escape<'a> {
|
||||
arg: &'a str,
|
||||
is_like_msvc: bool,
|
||||
|
Loading…
Reference in New Issue
Block a user