Skip to content

Commit c784c52

Browse files
committed
fix backwards warning of zig libc
crt_dir is only not required for darwin
1 parent 44c1474 commit c784c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-self-hosted/libc_installation.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub const LibCInstallation = struct {
9898
try stderr.print("sys_include_dir may not be empty\n", .{});
9999
return error.ParseError;
100100
}
101-
if (self.crt_dir == null and is_darwin) {
101+
if (self.crt_dir == null and !is_darwin) {
102102
try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())});
103103
return error.ParseError;
104104
}
@@ -153,7 +153,7 @@ pub const LibCInstallation = struct {
153153
\\
154154
\\# The directory that contains `crtbegin.o`.
155155
\\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`.
156-
\\# Not needed when targeting MacOS.
156+
\\# Only needed when targeting MinGW-w64 on Windows.
157157
\\static_crt_dir={}
158158
\\
159159
\\# The directory that contains `vcruntime.lib`.

0 commit comments

Comments
 (0)