Commit 11583c5b authored by David Himmelstrup's avatar David Himmelstrup
Browse files

LHC: Don't use --no-user-package-conf. It doesn't work with ghc-6.8.

parent 2f0fd6af
......@@ -131,7 +131,7 @@ getInstalledPackages :: Verbosity -> PackageDB -> ProgramConfiguration
-> IO (PackageIndex InstalledPackageInfo)
getInstalledPackages verbosity packagedb conf = do
(globalDir, userDir) <- getLhcLibDirs verbosity conf
let extraArgs = [ "--no-user-package-conf", "--global-conf="++globalDir </> "package.conf"
let extraArgs = [ "--global-conf="++globalDir </> "package.conf"
, "--package-conf=" ++ case packagedb of
SpecificPackageDB path -> path
_ -> userDir </> "package.conf"]
......
......@@ -177,7 +177,7 @@ register pkg_descr lbi regFlags
(libdir installDirs </> "package.conf")
LHC -> do
(globalDir, userDir) <- LHC.getLhcLibDirsFromVersion (Just (compilerVersion (compiler lbi)))
let config_flags = [ "--force", "--no-user-package-conf", "--global-conf="++globalDir </> "package.conf"
let config_flags = [ "--force", "--global-conf="++globalDir </> "package.conf"
, "--package-conf=" ++ case packageDB of
SpecificPackageDB path -> path
_ -> userDir </> "package.conf"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment