authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2023-06-12 22:02:59+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-12 14:22:32-07:00
log1ec14988e146b185d87b09c62a1aa715a49047ab
tree876d13f07920fc907fd68d21a6e82774a2bb831b
parent415dbe93d44a5f86deecc1501185d6bfd34f80b4

build: add -Dno-bin option

This is useful for development, as it speeds up the process of getting semantic analysis errors significantly.

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

build.zig+2
......@@ -30,6 +30,7 @@ pub fn build(b: *std.Build) !void {
3030 const test_step = b.step("test", "Run all the tests");
3131 const skip_install_lib_files = b.option(bool, "no-lib", "skip copying of lib/ files and langref to installation prefix. Useful for development") orelse false;
3232 const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files;
33 const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false;
3334
3435 const docgen_exe = b.addExecutable(.{
3536 .name = "docgen",
......@@ -166,6 +167,7 @@ pub fn build(b: *std.Build) !void {
166167 exe.pie = pie;
167168 exe.sanitize_thread = sanitize_thread;
168169 exe.entitlements = entitlements;
170 if (no_bin) exe.emit_bin = .no_emit;
169171
170172 exe.build_id = b.option(
171173 std.Build.Step.Compile.BuildId,