diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-16 16:15:50 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-16 16:15:50 -0700 |
| commit | 8364417c8fead9f617a4c1a83af0c6401a1c4240 (patch) | |
| tree | 79b2e2848d718bdfe137c965f006ac959d5cc19f /src/main.zig | |
| parent | fe127a36919a0f14e380303914d570fd172757f3 (diff) | |
| download | zig-8364417c8fead9f617a4c1a83af0c6401a1c4240.tar.gz zig-8364417c8fead9f617a4c1a83af0c6401a1c4240.zip | |
trivial refactor to remove redundant function call
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index d5efc399d6..fa523fdb90 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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 }); |
