aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-20 22:02:38 -0500
committerGitHub <noreply@github.com>2025-01-20 22:02:38 -0500
commit0d6b17b6a5cd4d179417f8a13302558b05f1f2ca (patch)
tree6176967ff424025f12d67903e8528866f15a8d1d /lib/std/Build/Step/Compile.zig
parent0ec6b2dd883568900aa28dd5fea6d22258eed792 (diff)
parent23facb6a16ca1b0684d1f3eab1b932c3bf78e5ce (diff)
downloadzig-0d6b17b6a5cd4d179417f8a13302558b05f1f2ca.tar.gz
zig-0d6b17b6a5cd4d179417f8a13302558b05f1f2ca.zip
Merge pull request #22511 from apwadkar/master
Fix compiler errors in std.process and std.Build.Step.Compile
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
-rw-r--r--lib/std/Build/Step/Compile.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index 7daf10c68c..32e5791fe4 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -610,7 +610,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;
@@ -622,8 +622,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;
}
}