diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-18 21:28:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-18 21:28:06 -0400 |
| commit | 4c0259b107236b39f7b1e8f423d2bf9f48e89b54 (patch) | |
| tree | 84905cc38d0908fb28c43b9a18295db4e6cbc72c /src/codegen.cpp | |
| parent | b738cbdc768796b59b19a07a29a95892937d6f11 (diff) | |
| download | zig-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.cpp | 4 |
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; |
