adds toolchainSanityChecks for isolated installs too in `installGHCBindist` function.

This commit is contained in:
Arjun Kathuria 2021-08-10 19:53:41 +05:30
parent 80eb72ce49
commit d1735bc446
1 changed files with 2 additions and 1 deletions

View File

@ -218,12 +218,13 @@ installGHCBindist dlinfo ver isoFilepath = do
-- prepare paths
ghcdir <- lift $ ghcupGHCDir tver
toolchainSanityChecks
case isoFilepath of
Just isoDir -> do -- isolated install
lift $ $(logInfo) [i|isolated installing GHC to #{isoDir}|]
liftE $ installPackedGHC dl (view dlSubdir dlinfo) isoDir ver
Nothing -> do -- regular install
toolchainSanityChecks
liftE $ installPackedGHC dl (view dlSubdir dlinfo) ghcdir ver
-- make symlinks & stuff when regular install,