login

<     >

2020-08-13 20:59:13 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

don't delete objects when called as linker

diff --git a/neatcc b/neatcc
index 041a7f1..6611c5c 100755
--- a/neatcc
+++ b/neatcc
@@ -98,6 +98,9 @@ if [ -n "$c_sources" ]; then
 fi
 if [ $link = "yes" ]; then
     nldargs="$nldargs $objects $NLC/start.o $NLC/libc.a"
-    $NLD$nldargs && rm -f $objects
+    $NLD$nldargs || exit
+    if [ -n "$asm_sources$c_sources" ]; then
+        rm -f $objects
+    fi
 fi