Skip to content

Commit 7f34ae9

Browse files
committed
If build is host, allow installing even for build.
1 parent 1a3a0a0 commit 7f34ae9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cabal-install/src/Distribution/Client/Dependency.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,9 @@ resolveDependencies toolchains pkgConfigDB params =
862862
verbosity
863863
) =
864864
if asBool (depResolverAllowBootLibInstalls params)
865-
then dontInstallNonReinstallablePackagesForBuild params
865+
then if buildIsHost toolchains
866+
then params
867+
else dontInstallNonReinstallablePackagesForBuild params
866868
else dontInstallNonReinstallablePackages params
867869

868870
preferences :: PackageName -> PackagePreferences

0 commit comments

Comments
 (0)