From b5a2487f7a7b48c4d30a17b3d9b807dccbaf43fc Mon Sep 17 00:00:00 2001 From: Adheesh Wadkar Date: Fri, 17 Jan 2025 00:22:13 -0600 Subject: [PATCH 1/2] Fix chdirC compile error --- lib/std/process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/process.zig b/lib/std/process.zig index eca3a26c29..34072a4d31 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -15,7 +15,7 @@ pub const Child = @import("process/Child.zig"); pub const abort = posix.abort; pub const exit = posix.exit; pub const changeCurDir = posix.chdir; -pub const changeCurDirC = posix.chdirC; +pub const changeCurDirZ = posix.chdirZ; pub const GetCwdError = posix.GetCwdError; From 23facb6a16ca1b0684d1f3eab1b932c3bf78e5ce Mon Sep 17 00:00:00 2001 From: Adheesh Wadkar Date: Fri, 17 Jan 2025 00:39:37 -0600 Subject: [PATCH 2/2] Fix dependsOnSystemLibrary compile error --- lib/std/Build/Step/Compile.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 511d37d458..e30d0fce22 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -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; @@ -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; } }