commit 65d42086ffbd6d7dea2b9a43b97bfc1e437f8a82 (tree)
parent e2a71b37d867e5567e06c8e57b04e648ade4aca3
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 16 Oct 2024 14:37:49 -0700
CLI: dylibs provided by path act as inferred root module
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main.zig b/src/main.zig
@@ -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,
};