From 4c0259b107236b39f7b1e8f423d2bf9f48e89b54 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 18 Sep 2016 21:28:06 -0400 Subject: ability to specify -framework linker args for MacOS --- src/link.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/link.cpp') diff --git a/src/link.cpp b/src/link.cpp index 56a44c4612..caec1176be 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -671,6 +671,11 @@ static void construct_linker_job_darwin(LinkJob *lj) { zig_panic("TODO"); } + for (int i = 0; i < g->darwin_frameworks.length; i += 1) { + lj->args.append("-framework"); + lj->args.append(buf_ptr(g->darwin_frameworks.at(i))); + } + } static void construct_linker_job(LinkJob *lj) { -- cgit v1.2.3