Mercurial > octave
diff src/mkoctfile.in.cc @ 24622:298c6a6bd869
Accept compound unrecognized arguments to mkoctfile (bug #52928).
* mkoctfile.in.cc: Check if the next string following an unrecognized argument
is an option (begin with '-') or not. If it is not an option then assume it
is part of the unrecognized argument and pass it through.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 19 Jan 2018 13:25:24 -0800 |
parents | 194eb4bd202b |
children | ab2321d4ba03 |
line wrap: on
line diff
--- a/src/mkoctfile.in.cc Fri Jan 19 06:05:18 2018 -0500 +++ b/src/mkoctfile.in.cc Fri Jan 19 13:25:24 2018 -0800 @@ -634,6 +634,16 @@ { // Pass through any unrecognized options pass_on_options += (' ' + arg); + // Check for an additional argument following the option + if (i < argc-1) + { + arg = argv[i+1]; + if (arg[0] != '-') + { + pass_on_options += (' ' + arg); + i++; + } + } } else {