Skip to content

Commit

Permalink
Merge branch 'fix-stack-setup-gcc' of https://github.com/hasufell/stack
Browse files Browse the repository at this point in the history
… into hasufell-fix-stack-setup-gcc
  • Loading branch information
mpilgrem committed Jul 30, 2022
2 parents 3ecd5b6 + 4255f1a commit 8f2977c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1460,9 +1460,10 @@ installGHCPosix downloadInfo _ archiveFile archiveType tempDir destDir = do

dir <- expectSingleUnpackedDir archiveFile tempDir

gccEnvMaybe <- fmap (\gcc -> Map.fromList [("CC", T.pack (toFilePath gcc))]) <$> (view $ configL.to configOverrideGccPath)
logSticky "Configuring GHC ..."
runStep "configuring" dir
(gdiConfigureEnv downloadInfo)
(fromMaybe Map.empty gccEnvMaybe `Map.union` gdiConfigureEnv downloadInfo)
(toFilePath $ dir </> relFileConfigure)
(("--prefix=" ++ toFilePath destDir) : map T.unpack (gdiConfigureOpts downloadInfo))

Expand Down

0 comments on commit 8f2977c

Please sign in to comment.