| ... | ... | @@ -2237,8 +2237,7 @@ const incremental_targets: []const []const u8 = &.{ |
| 2237 | 2237 | "x86_64-linux-selfhosted", |
| 2238 | 2238 | // https://codeberg.org/ziglang/zig/issues/31773 |
| 2239 | 2239 | //"x86_64-windows-selfhosted", |
| 2240 | | // https://codeberg.org/ziglang/zig/issues/31810 |
| 2241 | | //"wasm32-wasi-selfhosted", |
| 2240 | "wasm32-wasi-selfhosted", |
| 2242 | 2241 | }; |
| 2243 | 2242 | |
| 2244 | 2243 | fn compatible32bitArch(host: *const std.Target) ?std.Target.Cpu.Arch { |
| ... | ... | @@ -3248,7 +3247,12 @@ pub fn addDebuggerTests(b: *std.Build, options: DebuggerContext.Options) ?*Step |
| 3248 | 3247 | return step; |
| 3249 | 3248 | } |
| 3250 | 3249 | |
| 3251 | | pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []const []const u8) !void { |
| 3250 | pub fn addIncrementalTests( |
| 3251 | b: *std.Build, |
| 3252 | test_step: *Step, |
| 3253 | test_filters: []const []const u8, |
| 3254 | test_target_filters: []const []const u8, |
| 3255 | ) !void { |
| 3252 | 3256 | const io = b.graph.io; |
| 3253 | 3257 | |
| 3254 | 3258 | const incr_check = b.addExecutable(.{ |
| ... | ... | @@ -3283,6 +3287,12 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []cons |
| 3283 | 3287 | b.dependOnFileContents(b.path(b.pathJoin(&.{ "test", "incremental", entry.path }))); |
| 3284 | 3288 | |
| 3285 | 3289 | for (incremental_targets) |target_str| { |
| 3290 | if (test_target_filters.len > 0) { |
| 3291 | for (test_target_filters) |filter| { |
| 3292 | if (std.mem.find(u8, target_str, filter) != null) break; |
| 3293 | } else continue; |
| 3294 | } |
| 3295 | |
| 3286 | 3296 | const run = b.addRunArtifact(incr_check); |
| 3287 | 3297 | run.setName(b.fmt("incr-check {s} '{s}'", .{ target_str, entry.basename })); |
| 3288 | 3298 | |