build: fix default for -Dllvm build option
This commit is contained in:
@@ -16,7 +16,7 @@ pub fn build(b: *Build) !void {
|
|||||||
|
|
||||||
const strip = b.option(bool, "strip", "Omit debug information") orelse false;
|
const strip = b.option(bool, "strip", "Omit debug information") orelse false;
|
||||||
const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false;
|
const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false;
|
||||||
const use_llvm = b.option(bool, "llvm", "Force use of Zig's LLVM backend and the lld linker") orelse false;
|
const use_llvm = b.option(bool, "llvm", "Force use of Zig's LLVM backend and the lld linker");
|
||||||
|
|
||||||
const omit_frame_pointer = switch (optimize) {
|
const omit_frame_pointer = switch (optimize) {
|
||||||
.Debug, .ReleaseSafe => false,
|
.Debug, .ReleaseSafe => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user