compiler: Update the list of targets that have a red zone.

This commit is contained in:
Alex Rønne Petersen 2024-12-08 16:52:44 +01:00
parent e62aac3ec4
commit 8d9ff8353d
No known key found for this signature in database

View File

@ -305,10 +305,16 @@ pub fn defaultCompilerRtOptimizeMode(target: std.Target) std.builtin.OptimizeMod
pub fn hasRedZone(target: std.Target) bool {
return switch (target.cpu.arch) {
.x86_64,
.x86,
.aarch64,
.aarch64_be,
.powerpc,
.powerpcle,
.powerpc64,
.powerpc64le,
.wasm32,
.wasm64,
.x86_64,
.x86,
=> true,
else => false,