trivial refactor to remove redundant function call

This commit is contained in:
Andrew Kelley 2020-10-16 16:15:50 -07:00
parent fe127a3691
commit 8364417c8f

View File

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