aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-09-18 21:28:06 -0400
committerAndrew Kelley <superjoe30@gmail.com>2016-09-18 21:28:06 -0400
commit4c0259b107236b39f7b1e8f423d2bf9f48e89b54 (patch)
tree84905cc38d0908fb28c43b9a18295db4e6cbc72c /src/link.cpp
parentb738cbdc768796b59b19a07a29a95892937d6f11 (diff)
downloadzig-4c0259b107236b39f7b1e8f423d2bf9f48e89b54.tar.gz
zig-4c0259b107236b39f7b1e8f423d2bf9f48e89b54.zip
ability to specify -framework linker args for MacOS
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp5
1 files changed, 5 insertions, 0 deletions
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) {