diff --git a/src/codegen.cpp b/src/codegen.cpp index 134569374e2b70abe9b3d644d6079872e2523cf6..3066d8b1c5f8ec7fd4e2a1bb7b57124430e3a948 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8774,6 +8774,11 @@ void add_cc_args(CodeGen *g, ZigList &args, const char *out_dep_pa } } + for (size_t i = 0; i < g->framework_dirs.length; i += 1) { + args.append("-iframework"); + args.append(g->framework_dirs.at(i)); + } + //note(dimenus): appending libc headers before c_headers breaks intrinsics //and other compiler specific items // According to Rich Felker libc headers are supposed to go before C language headers.