| ... | ... | @@ -53,6 +53,14 @@ static Buf *build_a_raw(CodeGen *parent_gen, const char *aname, Buf *full_path) |
| 53 | 53 | codegen_set_mmacosx_version_min(child_gen, parent_gen->mmacosx_version_min); |
| 54 | 54 | codegen_set_mios_version_min(child_gen, parent_gen->mios_version_min); |
| 55 | 55 | |
| 56 | // This is so that compiler_rt and builtin libraries know whether they |
| 57 | // will eventually be linked with libc. They make different decisions |
| 58 | // about what to export depending on whether libc is linked. |
| 59 | if (parent_gen->libc_link_lib != nullptr) { |
| 60 | LinkLib *new_link_lib = codegen_add_link_lib(child_gen, parent_gen->libc_link_lib->name); |
| 61 | new_link_lib->provided_explicitly = parent_gen->libc_link_lib->provided_explicitly; |
| 62 | } |
| 63 | |
| 56 | 64 | child_gen->enable_cache = true; |
| 57 | 65 | codegen_build_and_link(child_gen); |
| 58 | 66 | return &child_gen->output_file_path; |