diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-11-05 09:28:40 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-11-05 09:30:28 -0500 |
| commit | 7b9f8782c868b8331181bd47361e4dee2d8aebfe (patch) | |
| tree | bf869659c66aced8721599aff36b0d2f20cfcc76 /build.zig | |
| parent | 8311fac7e853f7e8454e79794ab9060a488a7875 (diff) | |
| download | zig-7b9f8782c868b8331181bd47361e4dee2d8aebfe.tar.gz zig-7b9f8782c868b8331181bd47361e4dee2d8aebfe.zip | |
build: add option to specify whether to use the llvm backend
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -224,6 +224,10 @@ pub fn build(b: *std.Build) !void { check_case_exe.want_lto = false; } + 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.addOptions("build_options", exe_options); |
