zig

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

commit 1cd913a0ec816f44d157980ade00a6560832a348 (tree)
parent 7e54ee06d84a0f810b08c544e7532d022da841a0
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Fri, 21 Nov 2025 08:49:54 +0100

std.zig.system: disable vector support on s390x for now

https://github.com/llvm/llvm-project/issues/168992

Diffstat:
Mlib/std/zig/system.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig @@ -473,6 +473,11 @@ pub fn resolveTargetQuery(io: Io, query: Target.Query) DetectError!Target { if (result.cpu.arch.isMIPS() and result.abi.float() == .soft) { result.cpu.features.addFeature(@intFromEnum(Target.mips.Feature.soft_float)); } + + // https://github.com/llvm/llvm-project/issues/168992 + if (result.cpu.arch == .s390x) { + result.cpu.features.removeFeature(@intFromEnum(Target.s390x.Feature.vector)); + } } // It's possible that we detect the native ABI, but fail to detect the OS version or were told