Skip to content

Commit

Permalink
Pass 'with-gcc:' specified compiler to 'stack setup', fixes #5493
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Aug 24, 2021
1 parent 37cdf40 commit 4255f1a
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 @@ -1405,9 +1405,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 4255f1a

Please sign in to comment.