mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Clearly check min 1 source files.
This commit is contained in:
@@ -103,6 +103,10 @@ void compiler_compile(BuildTarget *target)
|
||||
parse_file(context);
|
||||
}
|
||||
unsigned source_count = vec_size(contexts);
|
||||
if (!source_count)
|
||||
{
|
||||
error_exit("No source files to compile.");
|
||||
}
|
||||
assert(contexts);
|
||||
for (unsigned i = 0; i < source_count; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user