File tree 2 files changed +10
-0
lines changed 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
{-# LANGUAGE FlexibleContexts #-}
2
3
{-# LANGUAGE RankNTypes #-}
3
4
{-# LANGUAGE LambdaCase #-}
@@ -715,6 +716,11 @@ runConfigureScript verbosity backwardsCompatHack flags lbi = do
715
716
pathEnv = maybe (intercalate spSep extraPath)
716
717
((intercalate spSep extraPath ++ spSep)++ ) $ lookup " PATH" env
717
718
overEnv = (" CFLAGS" , Just cflagsEnv) :
719
+ -- TODO: Move to either Cabal/src/Distribution/Compat/Environment.hs
720
+ -- or Cabal/src/Distribution/Compat/FilePath.hs:
721
+ #ifdef mingw32_HOST_OS
722
+ (" PATH_SEPARATOR" , Just " ;" ) :
723
+ #endif
718
724
[(" PATH" , Just pathEnv) | not (null extraPath)]
719
725
hp = hostPlatform lbi
720
726
maybeHostFlag = if hp == buildPlatform then [] else [" --host=" ++ show (pretty hp)]
Original file line number Diff line number Diff line change
1
+ synopsis: Set PATH_SEPARATOR=";" when calling ./configure on Windows; this fix is necessary for autoconf >= 2.70
2
+ packages: Cabal
3
+ prs: #7510
4
+ issues: #7494
You can’t perform that action at this time.
0 commit comments