Permalink
Browse files

'runConfigureScript': quote the gcc path.

See #1634.
  • Loading branch information...
1 parent 14d0bae commit 7f9c23d836b7257950c8d49f18897c1a83777875 @23Skidoo 23Skidoo committed Jan 1, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cabal/Distribution/Simple.hs
@@ -648,7 +648,7 @@ runConfigureScript verbosity backwardsCompatHack flags lbi = do
-- a way to pass its flags too
let env' = appendToEnvironment ("CFLAGS", unwords ccFlags)
env
- args' = args ++ ["--with-gcc=" ++ ccProg]
+ args' = args ++ ["--with-gcc=\"" ++ ccProg ++ "\""]
handleNoWindowsSH $
rawSystemExitWithEnv verbosity "sh" args' env'

0 comments on commit 7f9c23d

Please sign in to comment.