zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f283791a5e72bf32abf65e7c8e67b29c22d76b41 (tree)
parent 1e095024a7974f323032f517aeff595e64963301
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sun,  8 Dec 2024 20:22:13 +0100

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

Diffstat:
Msrc/main.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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; } }