compiler: Don't consider powerpc to have red zone support yet.

The command line flag is only supported in Clang 20: https://github.com/ziglang/zig/issues/23056

This gets rid of some warnings when using zig cc.
This commit is contained in:
Alex Rønne Petersen 2025-03-03 14:05:42 +01:00
parent 6d29ef0baf
commit 4fad60fd3a

View File

@ -306,12 +306,8 @@ pub fn hasRedZone(target: std.Target) bool {
return switch (target.cpu.arch) { return switch (target.cpu.arch) {
.aarch64, .aarch64,
.aarch64_be, .aarch64_be,
.powerpc,
.powerpcle,
.powerpc64,
.powerpc64le,
.x86_64,
.x86, .x86,
.x86_64,
=> true, => true,
else => false, else => false,