From 8cfe303da907df41b41d2d78181760f80dc6579f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 16 Oct 2024 13:25:41 -0700 Subject: fix resolving link inputs --- src/link.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/link.zig') diff --git a/src/link.zig b/src/link.zig index 7cde28d683..a50ad5f8ea 100644 --- 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. -- cgit v1.2.3