authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-16 13:25:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-23 16:27:38-07:00
log8cfe303da907df41b41d2d78181760f80dc6579f
treee5c66b2a3a011dde97605457b2ab8e27b93c811b
parent76569035187ac86778802007b41382bfda42a7ee

fix resolving link inputs


1 files changed, 3 insertions(+), 0 deletions(-)

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