mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-12 07:18:31 +01:00
Skip building some core build tools
This commit is contained in:
parent
22200f8a14
commit
7ef87bbd32
@ -135,6 +135,7 @@ iiBuildTools InstallInfo { iiPackageDB = PackageDB m, iiPackages = packages } =
|
||||
-- FIXME possible improvement: track the dependencies between the build
|
||||
-- tools themselves, and install them in the correct order.
|
||||
map unPackageName
|
||||
$ filter (flip Set.notMember coreTools)
|
||||
$ filter (flip Map.member m)
|
||||
$ Set.toList
|
||||
$ Set.unions
|
||||
@ -145,3 +146,7 @@ iiBuildTools InstallInfo { iiPackageDB = PackageDB m, iiPackages = packages } =
|
||||
unPackageName (PackageName pn) = pn
|
||||
isSelected name _ = name `Set.member` selected
|
||||
selected = Set.fromList $ Map.keys packages
|
||||
|
||||
-- Build tools shipped with GHC which we should not attempt to build
|
||||
-- ourselves.
|
||||
coreTools = Set.fromList $ map PackageName $ words "hsc2hs"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user