From 65d42086ffbd6d7dea2b9a43b97bfc1e437f8a82 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 16 Oct 2024 14:37:49 -0700 Subject: [PATCH] CLI: dylibs provided by path act as inferred root module --- src/main.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.zig b/src/main.zig index d3da2180f5..063ed65f46 100644 --- 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, };