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:
Christoffer Lerno
2024-11-30 20:26:04 +01:00
parent b5e5c719ed
commit 462322026f
2 changed files with 2 additions and 1 deletions

View File

@@ -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"))

View File

@@ -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)
{