Skip to content

Commit 65624df

Browse files
mati865tgross35
authored andcommitted
compiler-builtins: Enable AArch64 __chkstk for MinGW
Similarly to i686 and X86_64 MinGW targets, Rust needs to provide the right chkstk symbol for AArch64 to avoid relying on the linker to provide it. CC rust-lang/rust#150725
1 parent a33e08e commit 65624df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-builtins/src/aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use core::intrinsics;
44

55
intrinsics! {
66
#[unsafe(naked)]
7-
#[cfg(target_os = "uefi")]
7+
#[cfg(any(all(windows, target_env = "gnu"), target_os = "uefi"))]
88
pub unsafe extern "custom" fn __chkstk() {
99
core::arch::naked_asm!(
1010
".p2align 2",

0 commit comments

Comments
 (0)