Remove out-of-date use of -fcompiling-prelude
#include "HsVersions.h"
import OccName
import Outputable
#include "HsVersions.h"
import OccName
import Outputable
-import CmdLineOpts ( opt_Static, opt_CompilingPrelude )
+import CmdLineOpts ( opt_Static )
mkPrelModule s = Module (_PK_ (encode s)) ilk
where
ilk
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
mkSrcModuleFS :: UserFS -> Module
mkSrcModuleFS s = Module (encodeFS s) HiFile
-- fpaths entries do not have dir_path prepended
fpaths <- getDirectoryContents dir_path
is_dyns <- catch
-- 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))
return False
else
doesFileExist (dir_path ++ '/': dir_contain_dll_his))