mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
build: add -Dno-bin option
This is useful for development, as it speeds up the process of getting semantic analysis errors significantly.
This commit is contained in:
parent
415dbe93d4
commit
1ec14988e1
@ -30,6 +30,7 @@ pub fn build(b: *std.Build) !void {
|
||||
const test_step = b.step("test", "Run all the tests");
|
||||
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;
|
||||
const skip_install_langref = b.option(bool, "no-langref", "skip copying of langref to the installation prefix") orelse skip_install_lib_files;
|
||||
const no_bin = b.option(bool, "no-bin", "skip emitting compiler binary") orelse false;
|
||||
|
||||
const docgen_exe = b.addExecutable(.{
|
||||
.name = "docgen",
|
||||
@ -166,6 +167,7 @@ pub fn build(b: *std.Build) !void {
|
||||
exe.pie = pie;
|
||||
exe.sanitize_thread = sanitize_thread;
|
||||
exe.entitlements = entitlements;
|
||||
if (no_bin) exe.emit_bin = .no_emit;
|
||||
|
||||
exe.build_id = b.option(
|
||||
std.Build.Step.Compile.BuildId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user