We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
zig libc
1 parent 44c1474 commit c784c52Copy full SHA for c784c52
src-self-hosted/libc_installation.zig
@@ -98,7 +98,7 @@ pub const LibCInstallation = struct {
98
try stderr.print("sys_include_dir may not be empty\n", .{});
99
return error.ParseError;
100
}
101
- if (self.crt_dir == null and is_darwin) {
+ if (self.crt_dir == null and !is_darwin) {
102
try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())});
103
104
@@ -153,7 +153,7 @@ pub const LibCInstallation = struct {
153
\\
154
\\# The directory that contains `crtbegin.o`.
155
\\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`.
156
- \\# Not needed when targeting MacOS.
+ \\# Only needed when targeting MinGW-w64 on Windows.
157
\\static_crt_dir={}
158
159
\\# The directory that contains `vcruntime.lib`.
0 commit comments