| ... | @@ -98,7 +98,7 @@ pub const LibCInstallation = struct { | ... | @@ -98,7 +98,7 @@ pub const LibCInstallation = struct { |
| 98 | try stderr.print("sys_include_dir may not be empty\n", .{}); | 98 | try stderr.print("sys_include_dir may not be empty\n", .{}); |
| 99 | return error.ParseError; | 99 | return error.ParseError; |
| 100 | } | 100 | } |
| 101 | if (self.crt_dir == null and is_darwin) { | 101 | if (self.crt_dir == null and !is_darwin) { |
| 102 | try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())}); | 102 | try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())}); |
| 103 | return error.ParseError; | 103 | return error.ParseError; |
| 104 | } | 104 | } |
| ... | @@ -153,7 +153,7 @@ pub const LibCInstallation = struct { | ... | @@ -153,7 +153,7 @@ pub const LibCInstallation = struct { |
| 153 | \\ | 153 | \\ |
| 154 | \\# The directory that contains `crtbegin.o`. | 154 | \\# The directory that contains `crtbegin.o`. |
| 155 | \\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`. | 155 | \\# 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. |
| 157 | \\static_crt_dir={} | 157 | \\static_crt_dir={} |
| 158 | \\ | 158 | \\ |
| 159 | \\# The directory that contains `vcruntime.lib`. | 159 | \\# The directory that contains `vcruntime.lib`. |