Skip to content

Commit

Permalink
maint: Merge stable to default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Aug 28, 2023
2 parents 7de4be2 + 327381e commit 673d8e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mkoctfile.in.cc
Original file line number Diff line number Diff line change
Expand Up @@ -934,9 +934,12 @@ main (int argc, char **sys_argv)
{
// Pass through any unrecognized options.
pass_on_options += (' ' + arg);
// Check for an additional argument following the option.
// However, don't check the final position which is typically a file
if (i < argc-2)
// If the current argument does not contain a '=' character, check
// for an additional argument following the option.
// However, don't copy the final position which is typically a file.
// FIXME: We might be copying flags that might need to be parsed
// instead. See bugs #52928 and #64590.
if (i < argc-2 && (arg.find ('=') == std::string::npos))
{
arg = argv[i+1];
if (arg[0] != '-')
Expand Down

0 comments on commit 673d8e8

Please sign in to comment.