octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64590] Wrong behavior of mkoctfile when optio


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #64590] Wrong behavior of mkoctfile when option -fdebug-prefix-map is present
Date: Sat, 26 Aug 2023 07:08:05 -0400 (EDT)

Update of bug #64590 (project octave):

        Operating System:               GNU/Linux => Any                    
         Planned Release:                    None => 8.4.0 (current stable) 

    _______________________________________________________

Follow-up Comment #2:

Thank you for bringing this to our attention.
Does the following change avoid the issue?

diff -r d313e8ece0b8 src/mkoctfile.in.cc
--- a/src/mkoctfile.in.cc       Sat May 13 13:57:14 2023 +0200
+++ b/src/mkoctfile.in.cc       Sat Aug 26 13:06:17 2023 +0200
@@ -943,9 +943,12 @@
         {
           // Pass through any unrecognized options.
           pass_on_options += (' ' + arg);
-          // Check for an additional argument following the option.
+          // If the current argument does not contain a `=` character, check
+          // for an additional argument following the option.
           // However, don't check the final position which is typically a
file
-          if (i < argc-2)
+          // FIXME: We might be skipping to parse some option with this.
+          //        See bugs #52928 and #64590.
+          if (i < argc-2 && (arg.find ('=') == std::string::npos))
             {
               arg = argv[i+1];
               if (arg[0] != '-')




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64590>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]