From c47c2a2f2a518c8878a081dd30a631f5bc21eefa Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 5 Apr 2019 15:39:00 -0400 Subject: [PATCH] stage1: fix debug builds on macOS --- src/libc_installation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libc_installation.cpp b/src/libc_installation.cpp index 0862ffec9b..3ea17f1bdc 100644 --- a/src/libc_installation.cpp +++ b/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) {