[commit: ghc] master: Don't pass -Wimplicit to the C++ compiler. (a0e308d)
Paolo Capriotti
p.capriotti at gmail.com
Mon Aug 13 13:51:36 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/a0e308de485bdb275008a40de9c76c31230e6c51
>---------------------------------------------------------------
commit a0e308de485bdb275008a40de9c76c31230e6c51
Author: Austin Seipp <mad.one at gmail.com>
Date: Sun Aug 5 03:26:45 2012 -0500
Don't pass -Wimplicit to the C++ compiler.
Supresses an ugly warning from gcc 4.6+ saying this is a C/ObjC flag
only.
Signed-off-by: Austin Seipp <mad.one at gmail.com>
>---------------------------------------------------------------
compiler/main/DriverPipeline.hs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 5dd24c4..3bed3d0 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1118,11 +1118,16 @@ runPhase cc_phase input_fn dflags
then ["-mcpu=v9"]
else [])
+ -- GCC 4.6+ doesn't like -Wimplicit when compiling C++.
+ ++ (if (cc_phase /= Ccpp && cc_phase /= Cobjcpp)
+ then ["-Wimplicit"]
+ else [])
+
++ (if hcc
then gcc_extra_viac_flags ++ more_hcc_opts
else [])
++ verbFlags
- ++ [ "-S", "-Wimplicit", cc_opt ]
+ ++ [ "-S", cc_opt ]
++ [ "-D__GLASGOW_HASKELL__="++cProjectVersionInt ]
++ framework_paths
++ cc_opts
More information about the Cvs-ghc
mailing list