Commit d093f51f16

Andrew Kelley <andrew@ziglang.org>
2019-02-27 14:39:51
stage1: fix unused function error on freebsd and netbsd
closes #2012 closes #2013
1 parent c59ce04
Changed files (1)
src/libc_installation.cpp
@@ -325,7 +325,7 @@ static Error zig_libc_find_native_include_dir_posix(ZigLibCInstallation *self, b
     }
     return ErrorFileNotFound;
 }
-#if !defined(ZIG_OS_DARWIN)
+#if !defined(ZIG_OS_DARWIN) && !defined(ZIG_OS_FREEBSD) && !defined(ZIG_OS_NETBSD)
 static Error zig_libc_cc_print_file_name(const char *o_file, Buf *out, bool want_dirname, bool verbose) {
     const char *cc_exe = getenv("CC");
     cc_exe = (cc_exe == nullptr) ? "cc" : cc_exe;