Commit c47c2a2f2a

Andrew Kelley <andrew@ziglang.org>
2019-04-05 21:39:00
stage1: fix debug builds on macOS
1 parent 846f72b
Changed files (1)
src/libc_installation.cpp
@@ -304,9 +304,11 @@ Error zig_libc_cc_print_file_name(const char *o_file, Buf *out, bool want_dirnam
 
 #undef CC_EXE
 
+#if defined(ZIG_OS_WINDOWS) || defined(ZIG_OS_LINUX)
 static Error zig_libc_find_native_crt_dir_posix(ZigLibCInstallation *self, bool verbose) {
     return zig_libc_cc_print_file_name("crt1.o", &self->crt_dir, true, verbose);
 }
+#endif
 
 #if defined(ZIG_OS_WINDOWS)
 static Error zig_libc_find_native_include_dir_windows(ZigLibCInstallation *self, ZigWindowsSDK *sdk, bool verbose) {