mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Merge pull request #22511 from apwadkar/master
Fix compiler errors in std.process and std.Build.Step.Compile
This commit is contained in:
commit
0d6b17b6a5
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue