Skip to content

Commit 4fad60f

Browse files
committed
compiler: Don't consider powerpc to have red zone support yet.
The command line flag is only supported in Clang 20: #23056 This gets rid of some warnings when using zig cc.
1 parent 6d29ef0 commit 4fad60f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/target.zig

+1-5
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,8 @@ pub fn hasRedZone(target: std.Target) bool {
306306
return switch (target.cpu.arch) {
307307
.aarch64,
308308
.aarch64_be,
309-
.powerpc,
310-
.powerpcle,
311-
.powerpc64,
312-
.powerpc64le,
313-
.x86_64,
314309
.x86,
310+
.x86_64,
315311
=> true,
316312

317313
else => false,

0 commit comments

Comments
 (0)