diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-06-11 14:41:42 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-06 01:00:18 +0200 |
| commit | b461d07a5464aec86c533434dab0b58edfffb331 (patch) | |
| tree | d3e19fc63623fb765ff08757c069e27d915ef66e /src/Sema.zig | |
| parent | 044ccf4138f8b027be01c95ad759d5302e2ff39d (diff) | |
| download | zig-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.zig | 13 |
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), - }); - }; } } |
