authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-28 17:16:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-02 22:01:04-07:00
logb54f6186ac9eb3c8ba1ee45a9ee5f0cf8b4e984d
tree5232c0b66fdca3598397be9e5f9afbaed1909aed
parente2f36c292ef05c6daaa083249e578776a9c82617

build.zig: fix single-threaded option

Instead of defaulting to false, just keep the option as optional to communicate default to the build system. Fixes one problem with building the compiler for single-threaded targets.

1 files changed, 1 insertions(+), 1 deletions(-)

build.zig+1-1
......@@ -16,7 +16,7 @@ pub fn build(b: *Builder) !void {
1616 b.setPreferredReleaseMode(.ReleaseFast);
1717 const mode = b.standardReleaseOptions();
1818 const target = b.standardTargetOptions(.{});
19 const single_threaded = b.option(bool, "single-threaded", "Build artifacts that run in single threaded mode") orelse false;
19 const single_threaded = b.option(bool, "single-threaded", "Build artifacts that run in single threaded mode");
2020 const use_zig_libcxx = b.option(bool, "use-zig-libcxx", "If libc++ is needed, use zig's bundled version, don't try to integrate with the system") orelse false;
2121
2222 var docgen_exe = b.addExecutable("docgen", "doc/docgen.zig");