Skip to content

Commit

Permalink
src/link.cpp: link against CoreFoundation on Darwin;
Browse files Browse the repository at this point in the history
Reference ziglang#1349 for help/understanding;
  • Loading branch information
kristate committed Aug 7, 2018
1 parent 30865ef commit 276472f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 276472f

Please sign in to comment.