main: ensure --whole-archive is passed down to linker for -l arguments

fixes #21971
This commit is contained in:
Aman Karmani 2025-01-30 05:19:30 -08:00 committed by GitHub
parent f82d7e87a3
commit 5af7f7ba8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1961,6 +1961,7 @@ fn buildOutputType(
try create_module.cli_link_inputs.append(arena, .{ .name_query = .{
.name = it.only_arg,
.query = .{
.must_link = must_link,
.needed = needed,
.weak = false,
.preferred_mode = lib_preferred_mode,