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(
15621562 .reexport = an.query.reexport,
15631563 .must_link = an.query.must_link,
15641564 .hidden = an.query.hidden,
1565 .allow_so_scripts = an.query.allow_so_scripts,
15651566 .preferred_mode = link_mode,
15661567 .search_strategy = .no_fallback,
15671568 },
......@@ -1877,6 +1878,8 @@ fn resolvePathInputLib(
18771878 link_mode: std.builtin.LinkMode,
18781879 color: std.zig.Color,
18791880) Allocator.Error!AccessLibPathResult {
1881 try resolved_inputs.ensureUnusedCapacity(gpa, 1);
1882
18801883 const test_path: Path = pq.path;
18811884 // In the case of .so files, they might actually be "linker scripts"
18821885 // that contain references to other libraries.