aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-06-30 15:36:02 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-07-01 23:03:15 +0200
commit1fcabe0bfcad7bd981ce883a2c407f2b023320ad (patch)
tree1d8796335b20d30239188a1d9c14a9625ff044f6
parent80c3de40b3a9b9a751200c07d7eaf4d6965ca5c2 (diff)
downloadzig-1fcabe0bfcad7bd981ce883a2c407f2b023320ad.tar.gz
zig-1fcabe0bfcad7bd981ce883a2c407f2b023320ad.zip
test: Only run coff_dwarf test on aarch64, x86, x86_64
This will just fail if run on architectures like riscv64.
-rw-r--r--test/standalone/coff_dwarf/build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/standalone/coff_dwarf/build.zig b/test/standalone/coff_dwarf/build.zig
index 53425db8d3..d143319547 100644
--- a/test/standalone/coff_dwarf/build.zig
+++ b/test/standalone/coff_dwarf/build.zig
@@ -3,6 +3,14 @@ const builtin = @import("builtin");
/// This tests the path where DWARF information is embedded in a COFF binary
pub fn build(b: *std.Build) void {
+ switch (builtin.cpu.arch) {
+ .aarch64,
+ .x86,
+ .x86_64,
+ => {},
+ else => return,
+ }
+
const test_step = b.step("test", "Test it");
b.default_step = test_step;