aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-21 20:28:36 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-05 22:29:25 -0700
commit496eb69273d363f21ca3923f00714b229882e42a (patch)
tree97229b0fe671e43e2aeafa3ac5d315bc2d8f44fd /build.zig
parentdf38dfa4d1c9028453f90c7e37dd6c06f829a995 (diff)
downloadzig-496eb69273d363f21ca3923f00714b229882e42a.tar.gz
zig-496eb69273d363f21ca3923f00714b229882e42a.zip
CI: add non-LLVM backends to the test matrix
We can't yet run the behavior tests with stage3, but at least we can run them with stage2, and we can use the proper test matrix. This commit also adds use_llvm and ofmt to the zig build system.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 4d3cf492bd..e9f0b69400 100644
--- a/build.zig
+++ b/build.zig
@@ -445,6 +445,9 @@ pub fn build(b: *Builder) !void {
false, // skip_single_threaded
skip_non_native,
skip_libc,
+ skip_stage1,
+ omit_stage2,
+ is_stage1,
));
toolchain_step.dependOn(tests.addPkgTests(
@@ -457,6 +460,9 @@ pub fn build(b: *Builder) !void {
true, // skip_single_threaded
skip_non_native,
true, // skip_libc
+ skip_stage1,
+ omit_stage2 or true, // TODO get these all passing
+ is_stage1,
));
toolchain_step.dependOn(tests.addPkgTests(
@@ -469,6 +475,9 @@ pub fn build(b: *Builder) !void {
true, // skip_single_threaded
skip_non_native,
true, // skip_libc
+ skip_stage1,
+ omit_stage2 or true, // TODO get these all passing
+ is_stage1,
));
toolchain_step.dependOn(tests.addCompareOutputTests(b, test_filter, modes));
@@ -494,6 +503,9 @@ pub fn build(b: *Builder) !void {
false,
skip_non_native,
skip_libc,
+ skip_stage1,
+ omit_stage2 or true, // TODO get these all passing
+ is_stage1,
);
const test_step = b.step("test", "Run all the tests");