| ... | @@ -1666,7 +1666,11 @@ fn buildOutputType( | ... | @@ -1666,7 +1666,11 @@ fn buildOutputType( |
| 1666 | fatal("unrecognized parameter: '{s}'", .{arg}); | 1666 | fatal("unrecognized parameter: '{s}'", .{arg}); |
| 1667 | } | 1667 | } |
| 1668 | } else switch (file_ext orelse Compilation.classifyFileExt(arg)) { | 1668 | } else switch (file_ext orelse Compilation.classifyFileExt(arg)) { |
| 1669 | .object, .static_library, .shared_library => { | 1669 | .shared_library => { |
| | 1670 | try link_objects.append(arena, .{ .path = arg }); |
| | 1671 | create_module.opts.any_dyn_libs = true; |
| | 1672 | }, |
| | 1673 | .object, .static_library => { |
| 1670 | try link_objects.append(arena, .{ .path = arg }); | 1674 | try link_objects.append(arena, .{ .path = arg }); |
| 1671 | }, | 1675 | }, |
| 1672 | .res => { | 1676 | .res => { |
| ... | @@ -1781,7 +1785,14 @@ fn buildOutputType( | ... | @@ -1781,7 +1785,14 @@ fn buildOutputType( |
| 1781 | .ext = file_ext, // duped while parsing the args. | 1785 | .ext = file_ext, // duped while parsing the args. |
| 1782 | }); | 1786 | }); |
| 1783 | }, | 1787 | }, |
| 1784 | .unknown, .shared_library, .object, .static_library => { | 1788 | .shared_library => { |
| | 1789 | try link_objects.append(arena, .{ |
| | 1790 | .path = it.only_arg, |
| | 1791 | .must_link = must_link, |
| | 1792 | }); |
| | 1793 | create_module.opts.any_dyn_libs = true; |
| | 1794 | }, |
| | 1795 | .unknown, .object, .static_library => { |
| 1785 | try link_objects.append(arena, .{ | 1796 | try link_objects.append(arena, .{ |
| 1786 | .path = it.only_arg, | 1797 | .path = it.only_arg, |
| 1787 | .must_link = must_link, | 1798 | .must_link = must_link, |