| ... | ... | @@ -1101,6 +1101,16 @@ static void construct_linker_job_wasm(LinkJob *lj) { |
| 1101 | 1101 | for (size_t i = 0; i < g->link_objects.length; i += 1) { |
| 1102 | 1102 | lj->args.append((const char *)buf_ptr(g->link_objects.at(i))); |
| 1103 | 1103 | } |
| 1104 | |
| 1105 | if (g->out_type == OutTypeExe) { |
| 1106 | if (g->libc_link_lib == nullptr) { |
| 1107 | Buf *builtin_a_path = build_a(g, "builtin"); |
| 1108 | lj->args.append(buf_ptr(builtin_a_path)); |
| 1109 | } |
| 1110 | |
| 1111 | Buf *compiler_rt_o_path = build_compiler_rt(g); |
| 1112 | lj->args.append(buf_ptr(compiler_rt_o_path)); |
| 1113 | } |
| 1104 | 1114 | } |
| 1105 | 1115 | |
| 1106 | 1116 | static void coff_append_machine_arg(CodeGen *g, ZigList<const char *> *list) { |