zig

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

commit 8cfe303da907df41b41d2d78181760f80dc6579f (tree)
parent 76569035187ac86778802007b41382bfda42a7ee
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 16 Oct 2024 13:25:41 -0700

fix resolving link inputs

Diffstat:
Msrc/link.zig | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/link.zig b/src/link.zig @@ -1562,6 +1562,7 @@ pub fn resolveInputs( .reexport = an.query.reexport, .must_link = an.query.must_link, .hidden = an.query.hidden, + .allow_so_scripts = an.query.allow_so_scripts, .preferred_mode = link_mode, .search_strategy = .no_fallback, }, @@ -1877,6 +1878,8 @@ fn resolvePathInputLib( link_mode: std.builtin.LinkMode, color: std.zig.Color, ) Allocator.Error!AccessLibPathResult { + try resolved_inputs.ensureUnusedCapacity(gpa, 1); + const test_path: Path = pq.path; // In the case of .so files, they might actually be "linker scripts" // that contain references to other libraries.