mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue