From df84c07298683bff0f5889a70f122cb35ba5f53e Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Thu, 5 Aug 2021 15:55:58 +0200 Subject: [PATCH] Set PATH_SEPARATOR=; when calling ./configure; fix #7494 --- Cabal/src/Distribution/Simple.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Cabal/src/Distribution/Simple.hs b/Cabal/src/Distribution/Simple.hs index f58d79f0f23..c18445e07a2 100644 --- a/Cabal/src/Distribution/Simple.hs +++ b/Cabal/src/Distribution/Simple.hs @@ -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)]