diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-16 14:37:49 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-23 16:27:38 -0700 |
| commit | 65d42086ffbd6d7dea2b9a43b97bfc1e437f8a82 (patch) | |
| tree | b7dc50451d5abfa3e9a6205174db568e848b6f14 /src | |
| parent | e2a71b37d867e5567e06c8e57b04e648ade4aca3 (diff) | |
| download | zig-65d42086ffbd6d7dea2b9a43b97bfc1e437f8a82.tar.gz zig-65d42086ffbd6d7dea2b9a43b97bfc1e437f8a82.zip | |
CLI: dylibs provided by path act as inferred root module
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 6 |
1 files 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, }; |
