aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.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/codegen.cpp
parentb738cbdc768796b59b19a07a29a95892937d6f11 (diff)
downloadzig-4c0259b107236b39f7b1e8f423d2bf9f48e89b54.tar.gz
zig-4c0259b107236b39f7b1e8f423d2bf9f48e89b54.zip
ability to specify -framework linker args for MacOS
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 827836925c..39a3d498fe 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -193,6 +193,10 @@ void codegen_add_link_lib(CodeGen *g, const char *lib) {
}
}
+void codegen_add_framework(CodeGen *g, const char *framework) {
+ g->darwin_frameworks.append(buf_create_from_str(framework));
+}
+
void codegen_set_windows_subsystem(CodeGen *g, bool mwindows, bool mconsole) {
g->windows_subsystem_windows = mwindows;
g->windows_subsystem_console = mconsole;