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
signature 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 {
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`.