diff --git a/test/standalone/build.zig.zon b/test/standalone/build.zig.zon index f0f7f6175be9106127036332c31e75e0e902e6fe..70fa17180500779d389ac25eb5c491ac4939cb99 100644 --- a/test/standalone/build.zig.zon +++ b/test/standalone/build.zig.zon @@ -144,9 +144,6 @@ .coff_dwarf = .{ .path = "coff_dwarf", }, - .compiler_rt_panic = .{ - .path = "compiler_rt_panic", - }, .ios = .{ .path = "ios", }, diff --git a/test/standalone/compiler_rt_panic/build.zig b/test/standalone/compiler_rt_panic/build.zig deleted file mode 100644 index 27f38d369134eaff54ce3721383785dd93047df6..0000000000000000000000000000000000000000 --- a/test/standalone/compiler_rt_panic/build.zig +++ /dev/null @@ -1,28 +0,0 @@ -const std = @import("std"); - -pub fn build(b: *std.Build) void { - const test_step = b.step("test", "Test it"); - b.default_step = test_step; - - const target = b.standardTargetOptions(.{}); - const optimize = b.standardOptimizeOption(.{}); - - if (target.result.ofmt != .elf or !(target.result.abi.isMusl() or target.result.abi.isGnu())) - return; - - const exe = b.addExecutable(.{ - .name = "main", - .root_module = b.createModule(.{ - .root_source_file = null, - .optimize = optimize, - .target = target, - .link_libc = true, - }), - }); - exe.root_module.addCSourceFile(.{ - .file = b.path("main.c"), - .flags = &.{}, - }); - exe.link_gc_sections = false; - exe.bundle_compiler_rt = true; -} diff --git a/test/standalone/compiler_rt_panic/main.c b/test/standalone/compiler_rt_panic/main.c deleted file mode 100644 index a11df761aaa60fc388163ccd76e82906767d146f..0000000000000000000000000000000000000000 --- a/test/standalone/compiler_rt_panic/main.c +++ /dev/null @@ -1,11 +0,0 @@ -#include - -void *__memset_chk(void *dest, int c, size_t n, size_t dest_n); - -char foo[128]; - -int main() { - __memset_chk(&foo[0], 0xff, 128, 128); - return foo[64]; -} -