compiler-rt: Use Windows Arm ABI routines for UEFI for now.

Until #21630 is addressed.

Closes #22893.
This commit is contained in:
Alex Rønne Petersen 2025-02-15 19:21:19 +01:00
parent 9ad57515b2
commit ddff1fa4c6

View File

@ -33,7 +33,8 @@ pub const want_aeabi = switch (builtin.abi) {
}; };
/// These functions are provided by libc when targeting MSVC, but not MinGW. /// These functions are provided by libc when targeting MSVC, but not MinGW.
pub const want_windows_arm_abi = builtin.cpu.arch.isArm() and builtin.os.tag == .windows and (builtin.abi.isGnu() or !builtin.link_libc); // Temporarily used for thumb-uefi until https://github.com/ziglang/zig/issues/21630 is addressed.
pub const want_windows_arm_abi = builtin.cpu.arch.isArm() and (builtin.os.tag == .windows or builtin.os.tag == .uefi) and (builtin.abi.isGnu() or !builtin.link_libc);
pub const want_ppc_abi = builtin.cpu.arch.isPowerPC(); pub const want_ppc_abi = builtin.cpu.arch.isPowerPC();