Mercurial > octave
changeset 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 | 2bb3f3de0b4e |
children | f39ae754a7d8 |
files | src/mkoctfile.in.cc |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
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 {