diff --git a/build.zig b/build.zig index a5e430fb01..7e9920bda2 100644 --- a/build.zig +++ b/build.zig @@ -77,6 +77,9 @@ pub fn build(b: *Builder) !void { const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse false; if (link_libc) exe.linkLibC(); + const log_scopes = b.option([]const []const u8, "log", "Which log scopes to enable") orelse &[0][]const u8{}; + + exe.addBuildOption([]const []const u8, "log_scopes", log_scopes); exe.addBuildOption(bool, "enable_tracy", tracy != null); if (tracy) |tracy_path| { const client_cpp = fs.path.join( @@ -104,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); diff --git a/ci/azure/pipelines.yml b/ci/azure/pipelines.yml index 388d6db044..7cd1d596b4 100644 --- a/ci/azure/pipelines.yml +++ b/ci/azure/pipelines.yml @@ -41,7 +41,7 @@ jobs: steps: - powershell: | - (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-06-02/msys2-base-x86_64-20200602.sfx.exe", "sfx.exe") + (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-base-x86_64-20200720.sfx.exe", "sfx.exe") .\sfx.exe -y -o\ del sfx.exe displayName: Download/Extract/Install MSYS2 diff --git a/doc/langref.html.in b/doc/langref.html.in index 6180ab592f..941c2cc1a6 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2,6 +2,7 @@ + Documentation - The Zig Programming Language