aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index abb1b61319..af342e523f 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1340,10 +1340,10 @@ fn buildOutputType(
} else if (root_src_file) |file| {
const basename = fs.path.basename(file);
break :blk mem.split(basename, ".").next().?;
- } else if (c_source_files.items.len == 1) {
+ } else if (c_source_files.items.len >= 1) {
const basename = fs.path.basename(c_source_files.items[0].src_path);
break :blk mem.split(basename, ".").next().?;
- } else if (link_objects.items.len == 1) {
+ } else if (link_objects.items.len >= 1) {
const basename = fs.path.basename(link_objects.items[0]);
break :blk mem.split(basename, ".").next().?;
} else if (emit_bin == .yes) {