Commit 7b9f8782c8

Jacob Young <jacobly0@users.noreply.github.com>
2023-11-05 15:28:40
build: add option to specify whether to use the llvm backend
1 parent 8311fac
Changed files (1)
build.zig
@@ -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);