mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
trivial refactor to remove redundant function call
This commit is contained in:
parent
fe127a3691
commit
8364417c8f
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user