From ab577daf233d26b37b9b6470f4fa0269962b5f88 Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Wed, 15 Sep 2021 21:41:49 +0200 Subject: [PATCH] Revert "Revert "Set PATH_SEPARATOR=; when calling ./configure; fix #7494"" This reverts commit 37ccc45cb7cd6008d69a22b58138deb167edab26. --- 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 edd0e93c660..809038ed3fe 100644 --- a/Cabal/src/Distribution/Simple.hs +++ b/Cabal/src/Distribution/Simple.hs @@ -687,6 +687,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)]