]> git.gag.com Git - fw/sdcc/commitdiff
Avoid tmp-files: create them only when compiling
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 13 Aug 2001 19:47:55 +0000 (19:47 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 13 Aug 2001 19:47:55 +0000 (19:47 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1142 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCmain.c

index 837f9d7df74c1e2be36a1db22330f09b4fa5eeb4..7f58094f4866837ee85e5cb22319028262443e49 100644 (file)
@@ -1319,17 +1319,10 @@ main (int argc, char **argv, char **envp)
   setDefaultOptions ();
   parseCmdLine (argc, argv);
 
-  initMem ();
-
-  port->finaliseOptions ();
-
   /* if no input then printUsage & exit */
   if ((!options.c1mode && !srcFileName && !nrelFiles) || 
       (options.c1mode && !srcFileName && !options.out_name))
     {
-      #if defined (__MINGW32__) || defined (__CYGWIN__) || defined (_MSC_VER)
-      rm_tmpfiles();
-      #endif
       printUsage ();
       exit (0);
     }
@@ -1338,6 +1331,10 @@ main (int argc, char **argv, char **envp)
     {
       preProcess (envp);
 
+      initMem ();
+
+      port->finaliseOptions ();
+
       initSymt ();
       initiCode ();
       initCSupport ();