From 2c77c16356faace9655c59c7c8955f6b35e658a7 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 3 May 2024 12:46:46 -0700 Subject: [PATCH] build: correct .mach only build option (i.e. do not build examples/libs) Signed-off-by: Stephen Gutekanst --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index bce4fcbf..70c7d00a 100644 --- a/build.zig +++ b/build.zig @@ -59,9 +59,9 @@ pub fn build(b: *std.Build) !void { const want_examples = build_all or (build_examples orelse false); const want_libs = build_all or (build_libs orelse false); const want_mach = build_all or (build_mach orelse false); - const want_core = build_all or (build_core orelse false); - const want_sysaudio = build_all or (build_sysaudio orelse false); - const want_sysgpu = build_all or want_core or (build_sysgpu orelse false); + const want_core = build_all or want_mach or (build_core orelse false); + const want_sysaudio = build_all or want_mach or (build_sysaudio orelse false); + const want_sysgpu = build_all or want_mach or want_core or (build_sysgpu orelse false); const build_options = b.addOptions(); build_options.addOption(bool, "want_mach", want_mach);