aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-04 15:32:16 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-04 15:32:16 -0700
commitc594f8dc26cebbcd371c0136da5ee7bb0eaca2b3 (patch)
treed6c5691ec7c7d0d73c918672e905c43ae9f897e2 /build.zig
parent02d09d13281a10dbab0d80d07935712b1fc50756 (diff)
downloadzig-c594f8dc26cebbcd371c0136da5ee7bb0eaca2b3.tar.gz
zig-c594f8dc26cebbcd371c0136da5ee7bb0eaca2b3.zip
stage2 tests: support the -Denable-qemu options and friends
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 51089664ad..7e9920bda2 100644
--- a/build.zig
+++ b/build.zig
@@ -107,6 +107,12 @@ pub fn build(b: *Builder) !void {
const is_wasmtime_enabled = b.option(bool, "enable-wasmtime", "Use Wasmtime to enable and run WASI libstd tests") orelse false;
const glibc_multi_dir = b.option([]const u8, "enable-foreign-glibc", "Provide directory with glibc installations to run cross compiled tests that link glibc");
+
+ test_stage2.addBuildOption(bool, "enable_qemu", is_qemu_enabled);
+ test_stage2.addBuildOption(bool, "enable_wine", is_wine_enabled);
+ test_stage2.addBuildOption(bool, "enable_wasmtime", is_wasmtime_enabled);
+ test_stage2.addBuildOption(?[]const u8, "glibc_multi_install_dir", glibc_multi_dir);
+
const test_stage2_step = b.step("test-stage2", "Run the stage2 compiler tests");
test_stage2_step.dependOn(&test_stage2.step);
test_step.dependOn(test_stage2_step);