Skip to content

Commit

Permalink
Set PATH_SEPARATOR=; when calling ./configure; fix #7494
Browse files Browse the repository at this point in the history
(cherry picked from commit 70f411d)
  • Loading branch information
Mikolaj authored and mergify-bot committed Aug 23, 2021
1 parent d9f18ca commit 4ee8784
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cabal/src/Distribution/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ runConfigureScript verbosity backwardsCompatHack flags lbi = do
pathEnv = maybe (intercalate spSep extraPath)
((intercalate spSep extraPath ++ spSep)++) $ lookup "PATH" env
overEnv = ("CFLAGS", Just cflagsEnv) :
("PATH_SEPARATOR", Just ";") :
[("PATH", Just pathEnv) | not (null extraPath)]
hp = hostPlatform lbi
maybeHostFlag = if hp == buildPlatform then [] else ["--host=" ++ show (pretty hp)]
Expand Down

0 comments on commit 4ee8784

Please sign in to comment.