Skip to content

Commit

Permalink
Revert "Don't mess with PATH_SEPARATOR outside Windows"
Browse files Browse the repository at this point in the history
This reverts commit b4fbeeb.

See haskell#7649.
  • Loading branch information
Mikolaj committed Sep 15, 2021
1 parent 2c6b516 commit c8f3025
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Cabal/src/Distribution/Simple.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE LambdaCase #-}
Expand Down Expand Up @@ -688,11 +687,7 @@ runConfigureScript verbosity backwardsCompatHack flags lbi = do
pathEnv = maybe (intercalate spSep extraPath)
((intercalate spSep extraPath ++ spSep)++) $ lookup "PATH" env
overEnv = ("CFLAGS", Just cflagsEnv) :
-- TODO: Move to either Cabal/src/Distribution/Compat/Environment.hs
-- or Cabal/src/Distribution/Compat/FilePath.hs:
#ifdef mingw32_HOST_OS
("PATH_SEPARATOR", Just ";") :
#endif
[("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 c8f3025

Please sign in to comment.