zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4fad60fd3a70d0b059ce92ce825faabc1d2ac2e8 (tree)
parent 6d29ef0bafa3a6d1646658b9bb88c2326f3720a1
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon,  3 Mar 2025 14:05:42 +0100

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.

Diffstat:
Msrc/target.zig | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

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