From 276472f3062774078846fdfa165f0fd80d11ab57 Mon Sep 17 00:00:00 2001 From: kristopher tate Date: Wed, 8 Aug 2018 00:15:45 +0900 Subject: [PATCH] src/link.cpp: link against CoreFoundation on Darwin; Reference #1349 for help/understanding; --- src/link.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/link.cpp b/src/link.cpp index f65c072bac4d..d75a9ac234d8 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -921,6 +921,12 @@ static void construct_linker_job_macho(LinkJob *lj) { zig_panic("TODO"); } + // Always include CoreFoundation + // Is There a Better Way? + // https://github.com/ziglang/zig/issues/1349 + lj->args.append("-framework"); + lj->args.append("CoreFoundation"); + for (size_t i = 0; i < g->darwin_frameworks.length; i += 1) { lj->args.append("-framework"); lj->args.append(buf_ptr(g->darwin_frameworks.at(i)));