mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
compiler: Update the list of targets that have a red zone.
This commit is contained in:
parent
e62aac3ec4
commit
8d9ff8353d
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user