[project @ 1999-03-02 19:01:56 by sof]
authorsof <unknown>
Tue, 2 Mar 1999 19:01:58 +0000 (19:01 +0000)
committersof <unknown>
Tue, 2 Mar 1999 19:01:58 +0000 (19:01 +0000)
Remove out-of-date use of -fcompiling-prelude

ghc/compiler/basicTypes/Module.lhs
ghc/compiler/rename/RnMonad.lhs

index 27d2cf2..deeefe1 100644 (file)
@@ -44,7 +44,7 @@ module Module
 #include "HsVersions.h"
 import OccName
 import Outputable
-import CmdLineOpts ( opt_Static, opt_CompilingPrelude )
+import CmdLineOpts ( opt_Static )
 
 \end{code}
 
@@ -165,8 +165,8 @@ mkPrelModule :: UserString -> Module
 mkPrelModule s = Module (_PK_ (encode s)) ilk
  where 
   ilk
-   | opt_Static || opt_CompilingPrelude = HiFile
-   | otherwise                         = HiDllFile
+   | opt_Static = HiFile
+   | otherwise = HiDllFile
 
 mkSrcModuleFS :: UserFS -> Module
 mkSrcModuleFS s = Module (encodeFS s) HiFile
index 0e14f7a..456ce08 100644 (file)
@@ -444,7 +444,7 @@ getAllFilesMatching dirs hims (dir_path, suffix) = ( do
     -- fpaths entries do not have dir_path prepended
   fpaths  <- getDirectoryContents dir_path
   is_dyns <- catch
-               (if dir_path == "." || opt_Static then
+               (if opt_Static || dir_path == "." then
                     return False
                 else
                     doesFileExist (dir_path ++ '/': dir_contain_dll_his))