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-01-28 17:17:31-07:00
logcd5b25c5ae258e7b172d8af6979c060d2a823035
tree64112467b588b8f2c2ce8beadb330dcd3d8e2100
parent68fc26cd08c46dfef606e58b07a3f492f2295d5c

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 {...@@ -16,7 +16,7 @@ pub fn build(b: *Builder) !void {
16 b.setPreferredReleaseMode(.ReleaseFast);16 b.setPreferredReleaseMode(.ReleaseFast);
17 const mode = b.standardReleaseOptions();17 const mode = b.standardReleaseOptions();
18 const target = b.standardTargetOptions(.{});18 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");
20 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;20 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
22 var docgen_exe = b.addExecutable("docgen", "doc/docgen.zig");22 var docgen_exe = b.addExecutable("docgen", "doc/docgen.zig");