mod compiler_builtins;
cfg_if::cfg_if! {
if #[cfg(all(
target_os = "windows",
target_env = "msvc",
target_pointer_width = "64"
))] {
unsafe extern "C" {
pub fn __chkstk();
}
pub const PROBESTACK: unsafe extern "C" fn() = __chkstk;
} else if #[cfg(all(
target_os = "windows",
target_env = "msvc",
target_pointer_width = "32"
))] {
unsafe extern "C" {
pub fn _chkstk();
}
pub const PROBESTACK: unsafe extern "C" fn() = _chkstk;
} else if #[cfg(all(target_os = "windows", target_env = "gnu"))] {
unsafe extern "C" {
#[cfg(all(target_os = "windows", target_env = "gnu"))]
pub fn ___chkstk_ms();
}
pub const PROBESTACK: unsafe extern "C" fn() = ___chkstk_ms;
} else if #[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))] {
extern "C" fn empty_probestack() {}
pub const PROBESTACK: unsafe extern "C" fn() = empty_probestack;
} else {
pub static PROBESTACK: unsafe extern "C" fn() = compiler_builtins::__rust_probestack;
}
}