mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Flag --cpu-flags doesn't work if the first item is an exclusion. #2905
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user