compiler: Link libc when we're asked to link to an emulated wasi-libc library.

This commit is contained in:
Alex Rønne Petersen 2024-12-08 20:22:13 +01:00
parent 1e095024a7
commit f283791a5e
No known key found for this signature in database

View File

@ -3828,6 +3828,7 @@ fn createModule(
if (target.os.tag == .wasi) {
if (wasi_libc.getEmulatedLibCrtFile(lib_name)) |crt_file| {
try create_module.wasi_emulated_libs.append(arena, crt_file);
create_module.opts.link_libc = true;
continue;
}
}