| ... | ... | @@ -919,7 +919,7 @@ fn buildOutputType( |
| 919 | 919 | fatal("unrecognized parameter: '{}'", .{arg}); |
| 920 | 920 | } |
| 921 | 921 | } else switch (Compilation.classifyFileExt(arg)) { |
| 922 | | .object, .static_library => { |
| 922 | .object, .static_library, .shared_library => { |
| 923 | 923 | try link_objects.append(arg); |
| 924 | 924 | }, |
| 925 | 925 | .assembly, .c, .cpp, .h, .ll, .bc => { |
| ... | ... | @@ -928,9 +928,6 @@ fn buildOutputType( |
| 928 | 928 | .extra_flags = try arena.dupe([]const u8, extra_cflags.items), |
| 929 | 929 | }); |
| 930 | 930 | }, |
| 931 | | .shared_library => { |
| 932 | | try link_objects.append(arg); |
| 933 | | }, |
| 934 | 931 | .zig, .zir => { |
| 935 | 932 | if (root_src_file) |other| { |
| 936 | 933 | fatal("found another zig file '{}' after root source file '{}'", .{ arg, other }); |