mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix bug with missing target in test and crash in benchmark. Note that this doesn't resolve the issues with these yet.
This commit is contained in:
@@ -318,6 +318,7 @@ static void parse_command(BuildOptions *options)
|
||||
{
|
||||
options->command = COMMAND_TEST;
|
||||
options->testing = true;
|
||||
parse_optional_target(options);
|
||||
return;
|
||||
}
|
||||
if (arg_match("run"))
|
||||
|
||||
@@ -174,7 +174,7 @@ const char *build_base_name(void)
|
||||
|
||||
static const char *exe_name(void)
|
||||
{
|
||||
ASSERT0(compiler.context.main || compiler.build.no_entry);
|
||||
ASSERT0(compiler.build.name || compiler.context.main || compiler.build.no_entry);
|
||||
const char *name;
|
||||
if (compiler.build.name || compiler.build.no_entry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user