authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 01:15:43-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-17 01:15:43-05:00
logc784c52819e505620fb1fcb48e59a48c6d8f487e
treebb7e2766ee82ca2098dfd75cc3ed9495a407525b
parent44c14749a1063e5525b3249cddca6435d0654df4
signaturelock-open Commit is signed but in an unrecognized format.

fix backwards warning of `zig libc`

crt_dir is only not required for darwin

1 files changed, 2 insertions(+), 2 deletions(-)

src-self-hosted/libc_installation.zig+2-2
...@@ -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`.