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