parent
cb63ecd6e9
commit
5b6cbd2e7c
|
@ -1551,6 +1551,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void {
|
|||
}
|
||||
|
||||
// Shared libraries.
|
||||
if (is_exe_or_dyn_lib) {
|
||||
const system_libs = self.base.options.system_libs.items();
|
||||
try argv.ensureCapacity(argv.items.len + system_libs.len);
|
||||
for (system_libs) |entry| {
|
||||
|
@ -1562,6 +1563,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void {
|
|||
const arg = if (ext == .shared_library) link_lib else try std.fmt.allocPrint(arena, "-l{}", .{link_lib});
|
||||
argv.appendAssumeCapacity(arg);
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_obj) {
|
||||
// libc++ dep
|
||||
|
|
Loading…
Reference in New Issue