From c594f8dc26cebbcd371c0136da5ee7bb0eaca2b3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 4 Aug 2020 15:32:16 -0700 Subject: stage2 tests: support the -Denable-qemu options and friends --- build.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build.zig') 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); -- cgit v1.2.3