changeset 25511:49d3c6344afe

mkoctfile: fix one more logic error * mkoctfile.in.cc (main): If compile_only, then DO exit after all compile commands are done and before the link commands.
author John W. Eaton <jwe@octave.org>
date Wed, 27 Jun 2018 14:00:34 -0400
parents 2710440ea566
children 7335d44f34b4
files src/mkoctfile.in.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mkoctfile.in.cc	Wed Jun 27 13:29:51 2018 -0400
+++ b/src/mkoctfile.in.cc	Wed Jun 27 14:00:34 2018 -0400
@@ -992,6 +992,11 @@
         }
     }
 
+  // If we are only compliling, we are done.
+
+  if (compile_only)
+    return 0;
+
   if (objfiles.empty ())
     {
       std::cerr << "mkoctfile: no objects to link" << std::endl;