diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-12-01 08:37:09 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-12-01 08:40:13 +0100 |
commit | 0511c0ab09f705c3012b405781c9398a143b0e38 (patch) | |
tree | bc8f4dc47da37c285adafa5735b6c34f7f98548a /mk | |
parent | 7ad384604652b87b68d32bdaff4ef7f94daf9d35 (diff) | |
download | haskell-0511c0ab09f705c3012b405781c9398a143b0e38.tar.gz |
Revert "Remove RAWCPP_FLAGS"
This reverts commit 460eebec65811c6a7bbe11645df322dda868e80d.
Thomas requested to revert the commit with the words:
> Please revert this commit, it is horribly wrong. I'll have a proper look
> later, but not supplying `-traditional` to the C preprocessor is the cause
> of #9828.
the reverted commit was related to #9094
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index 4f22c56cc5..0f5820f620 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -626,6 +626,15 @@ CP = cp # It's not easy to separate the CPP program from its flags, as # AC_PROG_CPP defines CPP as "/usr/bin/gcc -E" CPP = @CPP@ @CPPFLAGS@ +# +# RAWCPP_FLAGS are the flags to give to cpp (viz, gcc -E) to persuade it to +# behave plausibly on Haskell sources. +# +# Clang in particular is a bit more annoying, so we suppress some warnings. +RAWCPP_FLAGS = -undef -traditional +ifeq "$(CC_CLANG_BACKEND)" "1" +RAWCPP_FLAGS += -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs +endif FIND = @FindCmd@ |