Skip to content

Commit a5ab4c0

Browse files
committed
Update build.zig
1 parent 82d1345 commit a5ab4c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,15 +605,14 @@ fn configureObj(b: *Build, opts: *BunBuildOptions, obj: *Compile) void {
605605

606606
// Object options
607607
obj.use_llvm = !opts.no_llvm;
608-
obj.use_lld = if (opts.os == .mac) false else !opts.no_llvm;
608+
obj.use_lld = if (opts.os == .mac or opts.os == .linux) false else !opts.no_llvm;
609609

610610
if (opts.optimize == .Debug) {
611611
if (@hasField(std.meta.Child(@TypeOf(obj)), "llvm_codegen_threads"))
612612
obj.llvm_codegen_threads = opts.llvm_codegen_threads orelse 0;
613613
}
614614

615615
obj.no_link_obj = true;
616-
obj.use_lld = false;
617616

618617
if (opts.enable_asan and !enableFastBuild(b)) {
619618
if (@hasField(Build.Module, "sanitize_address")) {

0 commit comments

Comments
 (0)