Commit 5daca711 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

No need to drop dist/installed-pkg-config after every build

We generate this file if necessary when registering.
parent d0a57968
......@@ -94,10 +94,8 @@ import Distribution.Simple.Command
import Distribution.Simple.Build ( build )
import Distribution.Simple.SrcDist ( sdist )
import Distribution.Simple.Register ( register, unregister,
writeInstalledConfig,
removeRegScripts
)
import Distribution.Simple.Register
( register, unregister, removeRegScripts )
import Distribution.Simple.Configure
( getPersistBuildConfig, maybeGetPersistBuildConfig
......@@ -543,11 +541,8 @@ defaultInstallHook pkg_descr localbuildinfo _ flags = do
defaultBuildHook :: PackageDescription -> LocalBuildInfo
-> UserHooks -> BuildFlags -> IO ()
defaultBuildHook pkg_descr localbuildinfo hooks flags = do
let distPref = fromFlag $ buildDistPref flags
defaultBuildHook pkg_descr localbuildinfo hooks flags =
build pkg_descr localbuildinfo flags (allSuffixHandlers hooks)
when (hasLibs pkg_descr) $
writeInstalledConfig distPref pkg_descr localbuildinfo False Nothing
defaultRegHook :: PackageDescription -> LocalBuildInfo
-> UserHooks -> RegisterFlags -> IO ()
......
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