Skip to content

Commit 23facb6

Browse files
committed
Fix dependsOnSystemLibrary compile error
1 parent b5a2487 commit 23facb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/Build/Step/Compile.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void {
601601

602602
/// Returns whether the library, executable, or object depends on a particular system library.
603603
/// Includes transitive dependencies.
604-
pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {
604+
pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool {
605605
var is_linking_libc = false;
606606
var is_linking_libcpp = false;
607607

@@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {
613613
else => {},
614614
}
615615
}
616-
if (mod.link_libc) is_linking_libc = true;
617-
if (mod.link_libcpp) is_linking_libcpp = true;
616+
if (mod.link_libc orelse false) is_linking_libc = true;
617+
if (mod.link_libcpp orelse false) is_linking_libcpp = true;
618618
}
619619
}
620620

0 commit comments

Comments
 (0)