From fe0bb68d17b781f2913f9f60119cb344c6bce22b Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 23 Jun 2025 21:43:55 -0700 Subject: [PATCH] build.zig: add missing debug check steps --- build.zig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build.zig b/build.zig index 23459193ab..82a7294249 100644 --- a/build.zig +++ b/build.zig @@ -390,6 +390,12 @@ pub fn build(b: *Build) !void { .{ .os = .windows, .arch = .x86_64 }, }, &.{ .Debug, .ReleaseFast }); } + { + const step = b.step("check-windows-debug", "Check for semantic analysis errors on Windows"); + addMultiCheck(b, step, build_options, &.{ + .{ .os = .windows, .arch = .x86_64 }, + }, &.{.Debug}); + } { const step = b.step("check-macos", "Check for semantic analysis errors on Windows"); addMultiCheck(b, step, build_options, &.{ @@ -397,6 +403,13 @@ pub fn build(b: *Build) !void { .{ .os = .mac, .arch = .aarch64 }, }, &.{ .Debug, .ReleaseFast }); } + { + const step = b.step("check-macos-debug", "Check for semantic analysis errors on Windows"); + addMultiCheck(b, step, build_options, &.{ + .{ .os = .mac, .arch = .x86_64 }, + .{ .os = .mac, .arch = .aarch64 }, + }, &.{.Debug}); + } { const step = b.step("check-linux", "Check for semantic analysis errors on Windows"); addMultiCheck(b, step, build_options, &.{ @@ -404,6 +417,13 @@ pub fn build(b: *Build) !void { .{ .os = .linux, .arch = .aarch64 }, }, &.{ .Debug, .ReleaseFast }); } + { + const step = b.step("check-linux-debug", "Check for semantic analysis errors on Windows"); + addMultiCheck(b, step, build_options, &.{ + .{ .os = .linux, .arch = .x86_64 }, + .{ .os = .linux, .arch = .aarch64 }, + }, &.{.Debug}); + } // zig build translate-c-headers {