diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-08 20:22:13 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-08 20:22:13 +0100 |
| commit | f283791a5e72bf32abf65e7c8e67b29c22d76b41 (patch) | |
| tree | 0d31f7bac3b601c8a7e43de464847358ad7b3b4c /src | |
| parent | 1e095024a7974f323032f517aeff595e64963301 (diff) | |
| download | zig-f283791a5e72bf32abf65e7c8e67b29c22d76b41.tar.gz zig-f283791a5e72bf32abf65e7c8e67b29c22d76b41.zip | |
compiler: Link libc when we're asked to link to an emulated wasi-libc library.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 293350bbff..d3a0b4cdef 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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; } } |
