diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-11-28 01:35:10 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-12-04 03:46:35 +0100 |
| commit | e2a9e568b4cdc2cdb71265c0edb8d9288ded621b (patch) | |
| tree | 04ad902b0f71ff70f3e2c0fac066567d143b7ea4 /test/src/Libc.zig | |
| parent | ad9a5187ac5d42beeece355788d5620e4a0fc6ef (diff) | |
| download | zig-e2a9e568b4cdc2cdb71265c0edb8d9288ded621b.tar.gz zig-e2a9e568b4cdc2cdb71265c0edb8d9288ded621b.zip | |
build: add -Dskip-spirv and -Dskip-wasm options
Diffstat (limited to 'test/src/Libc.zig')
| -rw-r--r-- | test/src/Libc.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/Libc.zig b/test/src/Libc.zig index 708e4c7bb8..7c61b58e02 100644 --- a/test/src/Libc.zig +++ b/test/src/Libc.zig @@ -10,6 +10,7 @@ pub const Options = struct { optimize_modes: []const std.builtin.OptimizeMode, test_filters: []const []const u8, test_target_filters: []const []const u8, + skip_wasm: bool, max_rss: usize, }; @@ -41,6 +42,8 @@ pub fn addLibcTestCase( } pub fn addTarget(libc: *const Libc, target: std.Build.ResolvedTarget) void { + if (libc.options.skip_wasm and target.query.cpu_arch != null and target.query.cpu_arch.?.isWasm()) return; + if (libc.options.test_target_filters.len > 0) { const triple_txt = target.query.zigTriple(libc.b.allocator) catch @panic("OOM"); for (libc.options.test_target_filters) |filter| { |
