CLI: dylibs provided by path act as inferred root module

This commit is contained in:
Andrew Kelley
2024-10-16 14:37:49 -07:00
parent e2a71b37d8
commit 65d42086ff

View File

@@ -2764,10 +2764,8 @@ fn buildOutputType(
break :b create_module.c_source_files.items[0].src_path;
for (create_module.cli_link_inputs.items) |unresolved_link_input| switch (unresolved_link_input) {
.path_query => |pq| switch (Compilation.classifyFileExt(pq.path.sub_path)) {
.object, .static_library, .res => break :b pq.path.sub_path,
else => continue,
},
// Intentionally includes dynamic libraries provided by file path.
.path_query => |pq| break :b pq.path.sub_path,
else => continue,
};