Skip to content

Commit 32a34b6

Browse files
authored
Merge pull request #25125 from alexrp/loongarch-qemu-crashes
`std.debug`: disable stack traces on loongarch
2 parents 048f912 + b2ef6d0 commit 32a34b6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

lib/std/debug.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ pub const runtime_safety = switch (builtin.mode) {
169169
pub const sys_can_stack_trace = switch (builtin.cpu.arch) {
170170
// Observed to go into an infinite loop.
171171
// TODO: Make this work.
172+
.loongarch32,
173+
.loongarch64,
172174
.mips,
173175
.mipsel,
174176
.mips64,

test/tests.zig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,11 +2293,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
22932293
if (options.skip_single_threaded and test_target.single_threaded == true)
22942294
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-
23012296
// TODO get compiler-rt tests passing for self-hosted backends.
23022297
if (((target.cpu.arch != .x86_64 and target.cpu.arch != .aarch64) or target.ofmt == .coff) and
23032298
test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))

0 commit comments

Comments
 (0)