Skip to content

Commit 03f036d

Browse files
Enable chkstk/alloca intrinsics on x86_64-unknown-uefi
1 parent 356c967 commit 03f036d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

compiler-builtins/src/x86_64.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ use core::intrinsics;
1111
intrinsics! {
1212
#[naked]
1313
#[cfg(all(
14-
windows,
15-
target_env = "gnu",
14+
any(all(windows, target_env = "gnu"), target_os = "uefi"),
1615
not(feature = "no-asm")
1716
))]
1817
pub unsafe extern "C" fn ___chkstk_ms() {
@@ -40,8 +39,7 @@ intrinsics! {
4039

4140
#[naked]
4241
#[cfg(all(
43-
windows,
44-
target_env = "gnu",
42+
any(all(windows, target_env = "gnu"), target_os = "uefi"),
4543
not(feature = "no-asm")
4644
))]
4745
pub unsafe extern "C" fn __alloca() {
@@ -54,8 +52,7 @@ intrinsics! {
5452

5553
#[naked]
5654
#[cfg(all(
57-
windows,
58-
target_env = "gnu",
55+
any(all(windows, target_env = "gnu"), target_os = "uefi"),
5956
not(feature = "no-asm")
6057
))]
6158
pub unsafe extern "C" fn ___chkstk() {

0 commit comments

Comments
 (0)