| ... | ... | @@ -1210,8 +1210,8 @@ fn buildOutputType( |
| 1210 | 1210 | fatal("translate-c expects exactly 1 source file (found {})", .{c_source_files.items.len}); |
| 1211 | 1211 | } |
| 1212 | 1212 | |
| 1213 | | if (root_src_file == null and (arg_mode == .zig_test or arg_mode == .run)) { |
| 1214 | | fatal("one zig source file is required to run this command", .{}); |
| 1213 | if (root_src_file == null and arg_mode == .zig_test) { |
| 1214 | fatal("one zig source file is required to run `zig test`", .{}); |
| 1215 | 1215 | } |
| 1216 | 1216 | |
| 1217 | 1217 | const root_name = if (provided_name) |n| n else blk: { |