Skip to content

Commit

Permalink
Fix dependsOnSystemLibrary compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
apwadkar committed Jan 17, 2025
1 parent 1d70e98 commit 71536b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/std/Build/Step/Compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void {

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

Expand All @@ -613,8 +613,8 @@ pub fn dependsOnSystemLibrary(compile: *const Compile, name: []const u8) bool {
else => {},
}
}
if (mod.link_libc) is_linking_libc = true;
if (mod.link_libcpp) is_linking_libcpp = true;
if (mod.link_libc orelse false) is_linking_libc = true;
if (mod.link_libcpp orelse false) is_linking_libcpp = true;
}
}

Expand Down

0 comments on commit 71536b0

Please sign in to comment.