From c784c52819e505620fb1fcb48e59a48c6d8f487e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 17 Feb 2020 01:15:43 -0500 Subject: [PATCH] fix backwards warning of `zig libc` crt_dir is only not required for darwin --- src-self-hosted/libc_installation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-self-hosted/libc_installation.zig b/src-self-hosted/libc_installation.zig index 08d7571cec1dc09de87f2b1d1165d93f55027b0d..f97850bb68fcbbb6e216aa019611a78ba3303caa 100644 --- a/src-self-hosted/libc_installation.zig +++ b/src-self-hosted/libc_installation.zig @@ -98,7 +98,7 @@ pub const LibCInstallation = struct { try stderr.print("sys_include_dir may not be empty\n", .{}); return error.ParseError; } - if (self.crt_dir == null and is_darwin) { + if (self.crt_dir == null and !is_darwin) { try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.getOs())}); return error.ParseError; } @@ -153,7 +153,7 @@ pub const LibCInstallation = struct { \\ \\# The directory that contains `crtbegin.o`. \\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`. - \\# Not needed when targeting MacOS. + \\# Only needed when targeting MinGW-w64 on Windows. \\static_crt_dir={} \\ \\# The directory that contains `vcruntime.lib`. -- 2.54.0