comparison src/mkoctfile.in.cc @ 19745:b59aabc08e63

Pass unrecognized '-' arguments through mkoctfile to compiler (bug #34169). * mkoctfile.in.cc: After parsing arguments if argument has not been identified ,and begins with '-', then pass it through unmodified.
author Rik <rik@octave.org>
date Fri, 13 Feb 2015 20:51:59 -0800
parents 4197fc428c7d
children 19755f4fc851
comparison
equal deleted inserted replaced
19744:ce0a1bd0cd47 19745:b59aabc08e63
548 } 548 }
549 else if (starts_with (arg, "-W")) 549 else if (starts_with (arg, "-W"))
550 { 550 {
551 pass_on_options += (" " + arg); 551 pass_on_options += (" " + arg);
552 } 552 }
553 else if (starts_with (arg, "-"))
554 {
555 // Pass through any unrecognized options
556 pass_on_options += (" " + arg);
557 }
553 else 558 else
554 { 559 {
555 std::cerr << "mkoctfile: unrecognized argument " << arg << std::endl; 560 std::cerr << "mkoctfile: unrecognized argument " << arg << std::endl;
556 return 1; 561 return 1;
557 } 562 }