aboutsummaryrefslogtreecommitdiff
path: root/src/link/Lld.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-07-06 20:05:18 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-07-06 20:05:18 +0200
commit1f1082e36d3bf9cda4e61cae223e9903ae6fc4ce (patch)
tree0a2e45cda56056abd36b299ccb5bb52763d7d73f /src/link/Lld.zig
parentb461d07a5464aec86c533434dab0b58edfffb331 (diff)
downloadzig-1f1082e36d3bf9cda4e61cae223e9903ae6fc4ce.tar.gz
zig-1f1082e36d3bf9cda4e61cae223e9903ae6fc4ce.zip
wasi: Build emulated libraries into libc.a
This matches what we do for small helper libraries like this in MinGW-w64. It simplifies the compiler a bit, and also means the build system doesn't have to treat these library names specially. Closes #24325.
Diffstat (limited to 'src/link/Lld.zig')
-rw-r--r--src/link/Lld.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/link/Lld.zig b/src/link/Lld.zig
index 4b3c611b4a..caf9da1ed2 100644
--- a/src/link/Lld.zig
+++ b/src/link/Lld.zig
@@ -1539,13 +1539,6 @@ fn wasmLink(lld: *Lld, arena: Allocator) !void {
if (comp.config.link_libc and is_exe_or_dyn_lib) {
if (target.os.tag == .wasi) {
- for (comp.wasi_emulated_libs) |crt_file| {
- try argv.append(try comp.crtFileAsString(
- arena,
- wasi_libc.emulatedLibCRFileLibName(crt_file),
- ));
- }
-
try argv.append(try comp.crtFileAsString(
arena,
wasi_libc.execModelCrtFileFullName(comp.config.wasi_exec_model),