mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
build: add option to specify whether to use the llvm backend
This commit is contained in:
parent
8311fac7e8
commit
7b9f8782c8
1 changed files with 4 additions and 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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue