We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71bfc2 commit 666e879Copy full SHA for 666e879
src/link.cpp
@@ -1101,6 +1101,16 @@ static void construct_linker_job_wasm(LinkJob *lj) {
1101
for (size_t i = 0; i < g->link_objects.length; i += 1) {
1102
lj->args.append((const char *)buf_ptr(g->link_objects.at(i)));
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
1114
1115
1116
static void coff_append_machine_arg(CodeGen *g, ZigList<const char *> *list) {
0 commit comments