[commit: ghc] master: Kill whitespace after cpp's `-I` flag (4ab8fc5)

git at git.haskell.org git at git.haskell.org
Mon Apr 21 15:18:47 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4ab8fc55eb6119dbba2f487c5a01d30a7c6ae113/ghc

>---------------------------------------------------------------

commit 4ab8fc55eb6119dbba2f487c5a01d30a7c6ae113
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Apr 21 16:55:11 2014 +0200

    Kill whitespace after cpp's `-I` flag
    
    This clean-up is in a similiar spirit as 574ef4293b8676.
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


>---------------------------------------------------------------

4ab8fc55eb6119dbba2f487c5a01d30a7c6ae113
 compiler/main/DriverPipeline.hs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 2816c94..b93cef1 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1045,7 +1045,7 @@ runPhase (RealPhase cc_phase) input_fn dflags
         -- files; this is the Value Add(TM) that using ghc instead of
         -- gcc gives you :)
         pkg_include_dirs <- liftIO $ getPackageIncludePath dflags pkgs
-        let include_paths = foldr (\ x xs -> "-I" : x : xs) []
+        let include_paths = foldr (\ x xs -> ("-I" ++ x) : xs) []
                               (cmdline_include_paths ++ pkg_include_dirs)
 
         let gcc_extra_viac_flags = extraGccViaCFlags dflags



More information about the ghc-commits mailing list