| author | |
| committer | |
| log | c68f9bc207e04bb17fe7594f62c202dfd3ccbae4 |
| tree | 3984705e4683b55bbe0a7d1596c369f115b85936 |
| parent | b5ec75b7e7343b04a7b7734ed5a1726e121225aa |
| signature |
The amount of cross compilation required for these tests was too time-consuming
for how much value they added. test-stack-traces now cover these well enough,
especially as we add more exotic machines to the CI fleet to run native tests.7 files changed, 0 insertions(+), 125 deletions(-)
test/cases/pic_freestanding.zig deleted-14| ... | @@ -1,14 +0,0 @@ | ||
| 1 | const builtin = @import("builtin"); | ||
| 2 | const std = @import("std"); | ||
| 3 | |||
| 4 | pub fn _start() callconv(.naked) void {} | ||
| 5 | |||
| 6 | comptime { | ||
| 7 | @export(&_start, .{ .name = if (builtin.cpu.arch.isMIPS()) "__start" else "_start" }); | ||
| 8 | } | ||
| 9 | |||
| 10 | // compile | ||
| 11 | // backend=selfhosted,llvm | ||
| 12 | // target=arm-freestanding,armeb-freestanding,thumb-freestanding,thumbeb-freestanding,aarch64-freestanding,aarch64_be-freestanding,loongarch64-freestanding,mips-freestanding,mipsel-freestanding,mips64-freestanding,mips64el-freestanding,powerpc-freestanding,powerpcle-freestanding,powerpc64-freestanding,powerpc64le-freestanding,riscv32-freestanding,riscv64-freestanding,s390x-freestanding,x86-freestanding,x86_64-freestanding | ||
| 13 | // pic=true | ||
| 14 | // output_mode=Exe | ||
test/cases/pic_linux.zig deleted-14| ... | @@ -1,14 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | |||
| 3 | // Eventually, this test should be made to work without libc by providing our | ||
| 4 | // own `__tls_get_addr` implementation. powerpcle-linux should be added to the | ||
| 5 | // target list here when that happens. | ||
| 6 | // | ||
| 7 | // https://github.com/ziglang/zig/issues/20625 | ||
| 8 | pub fn main() void {} | ||
| 9 | |||
| 10 | // run | ||
| 11 | // backend=selfhosted,llvm | ||
| 12 | // target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,s390x-linux,x86-linux,x86_64-linux | ||
| 13 | // pic=true | ||
| 14 | // link_libc=true | ||
test/cases/pie_freestanding.zig deleted-16| ... | @@ -1,16 +0,0 @@ | ||
| 1 | const builtin = @import("builtin"); | ||
| 2 | const std = @import("std"); | ||
| 3 | |||
| 4 | // The self-hosted backends currently output a bunch of bad relocations for PIE, | ||
| 5 | // so this test is LLVM only for now. | ||
| 6 | fn _start() callconv(.naked) void {} | ||
| 7 | |||
| 8 | comptime { | ||
| 9 | @export(&_start, .{ .name = if (builtin.cpu.arch.isMIPS()) "__start" else "_start" }); | ||
| 10 | } | ||
| 11 | |||
| 12 | // compile | ||
| 13 | // backend=llvm | ||
| 14 | // target=arm-freestanding,armeb-freestanding,thumb-freestanding,thumbeb-freestanding,aarch64-freestanding,aarch64_be-freestanding,loongarch64-freestanding,mips-freestanding,mipsel-freestanding,mips64-freestanding,mips64el-freestanding,powerpc-freestanding,powerpcle-freestanding,powerpc64-freestanding,powerpc64le-freestanding,riscv32-freestanding,riscv64-freestanding,s390x-freestanding,x86-freestanding,x86_64-freestanding | ||
| 15 | // pie=true | ||
| 16 | // output_mode=Exe | ||
test/cases/pie_linux.zig deleted-10| ... | @@ -1,10 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | |||
| 3 | // The self-hosted backends can't handle `.hidden _DYNAMIC` and `.weak _DYNAMIC` | ||
| 4 | // directives in inline assembly yet, so this test is LLVM only for now. | ||
| 5 | pub fn main() void {} | ||
| 6 | |||
| 7 | // run | ||
| 8 | // backend=llvm | ||
| 9 | // target=arm-linux,armeb-linux,thumb-linux,thumbeb-linux,aarch64-linux,aarch64_be-linux,loongarch64-linux,mips-linux,mipsel-linux,mips64-linux,mips64el-linux,powerpc-linux,powerpcle-linux,powerpc64-linux,powerpc64le-linux,riscv32-linux,riscv64-linux,s390x-linux,x86-linux,x86_64-linux | ||
| 10 | // pie=true | ||
test/standalone/build.zig.zon-3| ... | @@ -193,9 +193,6 @@ | ... | @@ -193,9 +193,6 @@ |
| 193 | .empty_global_error_set = .{ | 193 | .empty_global_error_set = .{ |
| 194 | .path = "empty_global_error_set", | 194 | .path = "empty_global_error_set", |
| 195 | }, | 195 | }, |
| 196 | .omit_cfi = .{ | ||
| 197 | .path = "omit_cfi", | ||
| 198 | }, | ||
| 199 | .config_header = .{ | 196 | .config_header = .{ |
| 200 | .path = "config_header", | 197 | .path = "config_header", |
| 201 | }, | 198 | }, |
test/standalone/omit_cfi/build.zig deleted-67| ... | @@ -1,67 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | |||
| 3 | pub fn build(b: *std.Build) void { | ||
| 4 | inline for (.{ | ||
| 5 | .aarch64, | ||
| 6 | .aarch64_be, | ||
| 7 | .hexagon, | ||
| 8 | .loongarch64, | ||
| 9 | .mips, | ||
| 10 | .mipsel, | ||
| 11 | .mips64, | ||
| 12 | .mips64el, | ||
| 13 | .powerpc, | ||
| 14 | .powerpcle, | ||
| 15 | .powerpc64, | ||
| 16 | .powerpc64le, | ||
| 17 | .riscv32, | ||
| 18 | .riscv64, | ||
| 19 | .s390x, | ||
| 20 | .sparc64, | ||
| 21 | .x86, | ||
| 22 | .x86_64, | ||
| 23 | }) |arch| { | ||
| 24 | const target = b.resolveTargetQuery(.{ | ||
| 25 | .cpu_arch = arch, | ||
| 26 | .os_tag = .linux, | ||
| 27 | }); | ||
| 28 | |||
| 29 | const omit_dbg = b.addExecutable(.{ | ||
| 30 | .name = b.fmt("{s}-linux-omit-dbg", .{@tagName(arch)}), | ||
| 31 | .root_module = b.createModule(.{ | ||
| 32 | .root_source_file = b.path("main.zig"), | ||
| 33 | .target = target, | ||
| 34 | .optimize = .Debug, | ||
| 35 | // We are mainly concerned with CFI directives in our non-libc startup code and syscall | ||
| 36 | // code, so make it explicit that we don't want libc. | ||
| 37 | .link_libc = false, | ||
| 38 | .strip = true, | ||
| 39 | }), | ||
| 40 | }); | ||
| 41 | |||
| 42 | const omit_uwt = b.addExecutable(.{ | ||
| 43 | .name = b.fmt("{s}-linux-omit-uwt", .{@tagName(arch)}), | ||
| 44 | .root_module = b.createModule(.{ | ||
| 45 | .root_source_file = b.path("main.zig"), | ||
| 46 | .target = target, | ||
| 47 | .optimize = .Debug, | ||
| 48 | .link_libc = false, | ||
| 49 | .unwind_tables = .none, | ||
| 50 | }), | ||
| 51 | }); | ||
| 52 | |||
| 53 | const omit_both = b.addExecutable(.{ | ||
| 54 | .name = b.fmt("{s}-linux-omit-both", .{@tagName(arch)}), | ||
| 55 | .root_module = b.createModule(.{ | ||
| 56 | .root_source_file = b.path("main.zig"), | ||
| 57 | .target = target, | ||
| 58 | .optimize = .Debug, | ||
| 59 | .link_libc = false, | ||
| 60 | .strip = true, | ||
| 61 | .unwind_tables = .none, | ||
| 62 | }), | ||
| 63 | }); | ||
| 64 | |||
| 65 | inline for (.{ omit_dbg, omit_uwt, omit_both }) |step| b.installArtifact(step); | ||
| 66 | } | ||
| 67 | } | ||
test/standalone/omit_cfi/main.zig deleted-1| ... | @@ -1 +0,0 @@ | ||
| 1 | pub fn main() void {} | ||