aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-10-16 13:25:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-10-23 16:27:38 -0700
commit8cfe303da907df41b41d2d78181760f80dc6579f (patch)
treee5c66b2a3a011dde97605457b2ab8e27b93c811b /src/link.zig
parent76569035187ac86778802007b41382bfda42a7ee (diff)
downloadzig-8cfe303da907df41b41d2d78181760f80dc6579f.tar.gz
zig-8cfe303da907df41b41d2d78181760f80dc6579f.zip
fix resolving link inputs
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig3
1 files changed, 3 insertions, 0 deletions
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.