mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +00:00
build: don't skip compiler build with -Dno-bin
This option exists for fast iteration during compiler development, since avoiding codegen (but still performing semantic analysis) causes compile errors to appear around twice as fast. This option was broken when the `emit_bin` property on `std.Build.Step.Compile` was removed. Now, when this option is passed, we add a direct install dependency on the compile step itself, so that it is always run.
This commit is contained in:
parent
1a0e6bcdb1
commit
6a349648cb
@ -204,7 +204,9 @@ pub fn build(b: *std.Build) !void {
|
||||
"Request creation of '.note.gnu.build-id' section",
|
||||
);
|
||||
|
||||
if (!no_bin) {
|
||||
if (no_bin) {
|
||||
b.getInstallStep().dependOn(&exe.step);
|
||||
} else {
|
||||
const install_exe = b.addInstallArtifact(exe, .{
|
||||
.dest_dir = if (flat) .{ .override = .prefix } else .default,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user