Flag --cpu-flags doesn't work if the first item is an exclusion. #2905

This commit is contained in:
Christoffer Lerno
2026-02-07 21:21:57 +01:00
parent 89b9f52f1e
commit b69f78be30
2 changed files with 2 additions and 1 deletions

View File

@@ -1083,7 +1083,7 @@ static void parse_option(BuildOptions *options)
}
if (match_longopt("cpu-flags"))
{
if (at_end() || next_is_opt()) error_exit("error: --cpu-flags expected a comma-separated list, like '+a,-b,+x'.");
if (at_end()) error_exit("error: --cpu-flags expected a comma-separated list, like '+a,-b,+x'.");
scratch_buffer_clear();
if (options->cpu_flags)
{