aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-06-11 14:41:42 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-07-06 01:00:18 +0200
commitb461d07a5464aec86c533434dab0b58edfffb331 (patch)
treed3e19fc63623fb765ff08757c069e27d915ef66e /src/Sema.zig
parent044ccf4138f8b027be01c95ad759d5302e2ff39d (diff)
downloadzig-b461d07a5464aec86c533434dab0b58edfffb331.tar.gz
zig-b461d07a5464aec86c533434dab0b58edfffb331.zip
Sema: Stop adding Windows implib link inputs for `extern "..."` syntax.
Closes #23971.
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 5b2e846ff0..c9ca2941da 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -9418,14 +9418,6 @@ fn resolveGenericBody(
return sema.resolveConstDefinedValue(block, src, result, reason);
}
-/// Given a library name, examines if the library name should end up in
-/// `link.File.Options.windows_libs` table (for example, libc is always
-/// specified via dedicated flag `link_libc` instead),
-/// and puts it there if it doesn't exist.
-/// It also dupes the library name which can then be saved as part of the
-/// respective `Decl` (either `ExternFn` or `Var`).
-/// The liveness of the duped library name is tied to liveness of `Zcu`.
-/// To deallocate, call `deinit` on the respective `Decl` (`ExternFn` or `Var`).
pub fn handleExternLibName(
sema: *Sema,
block: *Block,
@@ -9475,11 +9467,6 @@ pub fn handleExternLibName(
.{ lib_name, lib_name },
);
}
- comp.addLinkLib(lib_name) catch |err| {
- return sema.fail(block, src_loc, "unable to add link lib '{s}': {s}", .{
- lib_name, @errorName(err),
- });
- };
}
}