zig

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

commit 32a34b64caaefd1a0ae78b6d344da9812cb0cdb8 (tree)
parent 048f9126b8f2b41f9ef103025bafc2773a62d82a
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu,  4 Sep 2025 04:06:47 +0200

Merge pull request #25125 from alexrp/loongarch-qemu-crashes

`std.debug`: disable stack traces on loongarch
Diffstat:
Mlib/std/debug.zig | 2++
Mtest/tests.zig | 5-----
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -169,6 +169,8 @@ pub const runtime_safety = switch (builtin.mode) { pub const sys_can_stack_trace = switch (builtin.cpu.arch) { // Observed to go into an infinite loop. // TODO: Make this work. + .loongarch32, + .loongarch64, .mips, .mipsel, .mips64, diff --git a/test/tests.zig b/test/tests.zig @@ -2293,11 +2293,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { if (options.skip_single_threaded and test_target.single_threaded == true) continue; - // https://github.com/ziglang/zig/issues/24405 - if (!builtin.cpu.arch.isLoongArch() and target.cpu.arch.isLoongArch() and - (mem.eql(u8, options.name, "behavior") or mem.eql(u8, options.name, "std"))) - continue; - // TODO get compiler-rt tests passing for self-hosted backends. if (((target.cpu.arch != .x86_64 and target.cpu.arch != .aarch64) or target.ofmt == .coff) and test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))