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

`std.debug`: disable stack traces on loongarch
This commit is contained in:
Alex Rønne Petersen 2025-09-04 04:06:47 +02:00 committed by GitHub
commit 32a34b64ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -169,6 +169,8 @@ pub const runtime_safety = switch (builtin.mode) {
pub const sys_can_stack_trace = switch (builtin.cpu.arch) { pub const sys_can_stack_trace = switch (builtin.cpu.arch) {
// Observed to go into an infinite loop. // Observed to go into an infinite loop.
// TODO: Make this work. // TODO: Make this work.
.loongarch32,
.loongarch64,
.mips, .mips,
.mipsel, .mipsel,
.mips64, .mips64,

View file

@ -2293,11 +2293,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
if (options.skip_single_threaded and test_target.single_threaded == true) if (options.skip_single_threaded and test_target.single_threaded == true)
continue; 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. // 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 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")) test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))