mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
zig run foo.c is perfectly valid
This commit is contained in:
parent
a2b86777b5
commit
b306149b22
@ -1210,8 +1210,8 @@ fn buildOutputType(
|
||||
fatal("translate-c expects exactly 1 source file (found {})", .{c_source_files.items.len});
|
||||
}
|
||||
|
||||
if (root_src_file == null and (arg_mode == .zig_test or arg_mode == .run)) {
|
||||
fatal("one zig source file is required to run this command", .{});
|
||||
if (root_src_file == null and arg_mode == .zig_test) {
|
||||
fatal("one zig source file is required to run `zig test`", .{});
|
||||
}
|
||||
|
||||
const root_name = if (provided_name) |n| n else blk: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user