mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
fix backwards warning of zig libc
crt_dir is only not required for darwin
This commit is contained in:
parent
44c14749a1
commit
c784c52819
@ -98,7 +98,7 @@ pub const LibCInstallation = struct {
|
||||
try stderr.print("sys_include_dir may not be empty\n", .{});
|
||||
return error.ParseError;
|
||||
}
|
||||
if (self.crt_dir == null and is_darwin) {
|
||||
if (self.crt_dir == null and !is_darwin) {
|
||||
try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())});
|
||||
return error.ParseError;
|
||||
}
|
||||
@ -153,7 +153,7 @@ pub const LibCInstallation = struct {
|
||||
\\
|
||||
\\# The directory that contains `crtbegin.o`.
|
||||
\\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`.
|
||||
\\# Not needed when targeting MacOS.
|
||||
\\# Only needed when targeting MinGW-w64 on Windows.
|
||||
\\static_crt_dir={}
|
||||
\\
|
||||
\\# The directory that contains `vcruntime.lib`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user