diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2025-06-13 12:01:59 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2025-06-19 11:45:06 -0400 |
| commit | 16d78bc0c024da307c7ab5f6b94622e6b4b37397 (patch) | |
| tree | 9eb0e671a4ac1cfaf3795384d4b4e7d050d017d2 /build.zig | |
| parent | df4068cabd9af96d0aca1f435b985d1c103976da (diff) | |
| download | zig-16d78bc0c024da307c7ab5f6b94622e6b4b37397.tar.gz zig-16d78bc0c024da307c7ab5f6b94622e6b4b37397.zip | |
Build: add install commands to `--verbose` output
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -203,6 +203,10 @@ pub fn build(b: *std.Build) !void { exe.pie = pie; exe.entitlements = entitlements; + const use_llvm = b.option(bool, "use-llvm", "Use the llvm backend"); + exe.use_llvm = use_llvm; + exe.use_lld = use_llvm; + if (no_bin) { b.getInstallStep().dependOn(&exe.step); } else { @@ -214,10 +218,6 @@ pub fn build(b: *std.Build) !void { test_step.dependOn(&exe.step); - const use_llvm = b.option(bool, "use-llvm", "Use the llvm backend"); - exe.use_llvm = use_llvm; - exe.use_lld = use_llvm; - const exe_options = b.addOptions(); exe.root_module.addOptions("build_options", exe_options); |
