Browse Source

Fix gh1431 Keep object file for eclcc -c

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 years ago
parent
commit
5c5ac6aded
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/jlib/jcomp.cpp

+ 1 - 1
system/jlib/jcomp.cpp

@@ -400,7 +400,7 @@ bool CppCompiler::compile()
     else if (!onlyCompile)
     else if (!onlyCompile)
         ret = doLink();
         ret = doLink();
 
 
-    if (!saveTemps)
+    if (!saveTemps && !onlyCompile)
     {
     {
         removeTemporaries();
         removeTemporaries();
         StringBuffer temp;
         StringBuffer temp;