Commit bc6142f9 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Split ghc's build action into buildLib and buildExe

parent 9c0bc760
......@@ -67,7 +67,7 @@ import Distribution.Simple.Compiler
( CompilerFlavor(..), compilerFlavor )
import Distribution.PackageDescription
( PackageDescription(..), BuildInfo(..)
, Executable(..), Library(..) )
, Library(..), withLib, Executable(..), withExe )
import qualified Distribution.ModuleName as ModuleName
import Distribution.Simple.Setup
......@@ -107,7 +107,8 @@ build pkg_descr lbi flags suffixes = do
initialBuildSteps distPref pkg_descr lbi verbosity suffixes
setupMessage verbosity "Building" (packageId pkg_descr)
case compilerFlavor (compiler lbi) of
GHC -> pkg_descr lbi verbosity
GHC -> do withLib pkg_descr () (GHC.buildLib verbosity pkg_descr lbi)
withExe pkg_descr (GHC.buildExe verbosity pkg_descr lbi)
JHC -> pkg_descr lbi verbosity
LHC -> pkg_descr lbi verbosity
Hugs -> pkg_descr lbi verbosity
This diff is collapsed.
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