authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 08:05:30+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-10 08:36:07+02:00
logcc410eaf341c7ad054cebcc010bb8e62fbc93098
tree20fffcbdd919bc3b76ca459e4d0e5f0ad50258cb
parent41ca6e86577556d69c50c9ff49933c0f55922843
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test-standalone: remove compiler_rt_panic

It's not obvious to me what this was testing and it wasn't properly hooked up to the test_step anyway.

3 files changed, 0 insertions(+), 42 deletions(-)

test/standalone/build.zig.zon-3
...@@ -144,9 +144,6 @@...@@ -144,9 +144,6 @@
144 .coff_dwarf = .{144 .coff_dwarf = .{
145 .path = "coff_dwarf",145 .path = "coff_dwarf",
146 },146 },
147 .compiler_rt_panic = .{
148 .path = "compiler_rt_panic",
149 },
150 .ios = .{147 .ios = .{
151 .path = "ios",148 .path = "ios",
152 },149 },
test/standalone/compiler_rt_panic/build.zig deleted-28
...@@ -1,28 +0,0 @@
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const test_step = b.step("test", "Test it");
5 b.default_step = test_step;
6
7 const target = b.standardTargetOptions(.{});
8 const optimize = b.standardOptimizeOption(.{});
9
10 if (target.result.ofmt != .elf or !(target.result.abi.isMusl() or target.result.abi.isGnu()))
11 return;
12
13 const exe = b.addExecutable(.{
14 .name = "main",
15 .root_module = b.createModule(.{
16 .root_source_file = null,
17 .optimize = optimize,
18 .target = target,
19 .link_libc = true,
20 }),
21 });
22 exe.root_module.addCSourceFile(.{
23 .file = b.path("main.c"),
24 .flags = &.{},
25 });
26 exe.link_gc_sections = false;
27 exe.bundle_compiler_rt = true;
28}
test/standalone/compiler_rt_panic/main.c deleted-11
...@@ -1,11 +0,0 @@
1#include <stddef.h>
2
3void *__memset_chk(void *dest, int c, size_t n, size_t dest_n);
4
5char foo[128];
6
7int main() {
8 __memset_chk(&foo[0], 0xff, 128, 128);
9 return foo[64];
10}
11