authorgravatar for apwadkar@pm.meAdheesh Wadkar <apwadkar@pm.me> 2025-01-17 00:39:37-06:00
committergravatar for apwadkar@pm.meAdheesh Wadkar <apwadkar@pm.me> 2025-01-20 15:37:57-06:00
log23facb6a16ca1b0684d1f3eab1b932c3bf78e5ce
treeeeaa214c5998817f16c19ec0f7a9d989f54d3df4
parentb5a2487f7a7b48c4d30a17b3d9b807dccbaf43fc

Fix dependsOnSystemLibrary compile error


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Build/Step/Compile.zig+3-3
...@@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void {...@@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void {
601601
602/// Returns whether the library, executable, or object depends on a particular system library.602/// Returns whether the library, executable, or object depends on a particular system library.
603/// Includes transitive dependencies.603/// Includes transitive dependencies.
604pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {604pub fn dependsOnSystemLibrary(compile: *Compile, name: []const u8) bool {
605 var is_linking_libc = false;605 var is_linking_libc = false;
606 var is_linking_libcpp = false;606 var is_linking_libcpp = false;
607607
...@@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {...@@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {
613 else => {},613 else => {},
614 }614 }
615 }615 }
616 if (mod.link_libc) is_linking_libc = true;616 if (mod.link_libc orelse false) is_linking_libc = true;
617 if (mod.link_libcpp) is_linking_libcpp = true;617 if (mod.link_libcpp orelse false) is_linking_libcpp = true;
618 }618 }
619 }619 }
620620