Commit a8842b6cbf

Jacob Young <jacobly0@users.noreply.github.com>
2023-04-25 10:04:08
cases: disable broken backends
Disable backends that don't support the new liveness format.
1 parent 894406b
Changed files (1)
test
test/src/Cases.zig
@@ -390,6 +390,13 @@ fn addFromDirInner(
         // Cross-product to get all possible test combinations
         for (backends) |backend| {
             for (targets) |target| {
+                if (backend == .stage2 and
+                    target.getCpuArch() != .wasm32 and target.getCpuArch() != .x86_64)
+                {
+                    // Other backends don't support new liveness format
+                    continue;
+                }
+
                 const next = ctx.cases.items.len;
                 try ctx.cases.append(.{
                     .name = std.fs.path.stem(filename),