authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-04 04:06:47+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-09-04 04:06:47+02:00
log32a34b64caaefd1a0ae78b6d344da9812cb0cdb8
treea93a1fd0c4fdd244aea5d512ab9eb32d27b58be4
parent048f9126b8f2b41f9ef103025bafc2773a62d82a
parentb2ef6d01fff852f2f1b24bba4917055f4e699f19
signaturebadge-check Signed by PGP key B5690EEEBB952194

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

`std.debug`: disable stack traces on loongarch

2 files changed, 2 insertions(+), 5 deletions(-)

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