authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-16 16:15:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-16 16:15:50-07:00
log8364417c8fead9f617a4c1a83af0c6401a1c4240
tree79b2e2848d718bdfe137c965f006ac959d5cc19f
parentfe127a36919a0f14e380303914d570fd172757f3

trivial refactor to remove redundant function call


1 files changed, 1 insertions(+), 4 deletions(-)

src/main.zig+1-4
...@@ -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 });