ability to specify -framework linker args for MacOS

This commit is contained in:
Andrew Kelley
2016-09-18 21:28:06 -04:00
parent b738cbdc76
commit 4c0259b107
5 changed files with 19 additions and 0 deletions

View File

@@ -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;