summaryrefslogtreecommitdiffstats
path: root/vendor/compiler_builtins/src/x86_64.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/compiler_builtins/src/x86_64.rs')
-rw-r--r--vendor/compiler_builtins/src/x86_64.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/vendor/compiler_builtins/src/x86_64.rs b/vendor/compiler_builtins/src/x86_64.rs
index 393eeddd8..7ad941158 100644
--- a/vendor/compiler_builtins/src/x86_64.rs
+++ b/vendor/compiler_builtins/src/x86_64.rs
@@ -11,8 +11,7 @@ use core::intrinsics;
intrinsics! {
#[naked]
#[cfg(all(
- windows,
- target_env = "gnu",
+ any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn ___chkstk_ms() {
@@ -40,8 +39,7 @@ intrinsics! {
#[naked]
#[cfg(all(
- windows,
- target_env = "gnu",
+ any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn __alloca() {
@@ -54,8 +52,7 @@ intrinsics! {
#[naked]
#[cfg(all(
- windows,
- target_env = "gnu",
+ any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn ___chkstk() {