Commit a0e308de authored by mad.one@gmail.com's avatar mad.one@gmail.com Committed by pcapriotti
Browse files

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: mad.one@gmail.com's avatarAustin Seipp <mad.one@gmail.com>
parent d801c965
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment