diff options
author | Mateusz Lenik <mlen@mlen.pl> | 2014-10-21 15:34:00 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-10-21 15:36:14 -0500 |
commit | 972ba1210d1bb535c41526ce396c0f086d30b59a (patch) | |
tree | a6b4531b00c8cfa98ef0e12ecbbbfc181abffbc7 /mk | |
parent | 69f63612fc17cd6b3baaa8898c8595bde304ebfb (diff) | |
download | haskell-972ba1210d1bb535c41526ce396c0f086d30b59a.tar.gz |
Enabled warn on tabs by default (fixes #9230)
Summary:
This revision enables -fwarn-tabs by default and add a suppression
flag, so that GHC compilation won't fail when some files contain tab
characters.
Test Plan: Additional test case, T9230, was added to cover that change.
Reviewers: austin
Reviewed By: austin
Subscribers: simonmar, ezyang, carter, thomie, mlen
Differential Revision: https://phabricator.haskell.org/D255
GHC Trac Issues: #9230
Conflicts:
testsuite/driver/testlib.py
Diffstat (limited to 'mk')
-rw-r--r-- | mk/validate-settings.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk index 734e28de7b..b05b289239 100644 --- a/mk/validate-settings.mk +++ b/mk/validate-settings.mk @@ -167,3 +167,12 @@ libraries/template-haskell_dist-install_EXTRA_HC_OPTS += -fno-warn-inline-rule-s # We need -fno-warn-deprecated-flags to avoid failure with -Werror GhcLibHcOpts += -fno-warn-deprecated-flags GhcBootLibHcOpts += -fno-warn-deprecated-flags + +# The warning suppression flag below is a temporary kludge. While working with +# modules that contain tabs, please de-tab them so this flag can be eventually +# removed. See +# http://ghc.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces +# for details +# +GhcLibHcOpts += -fno-warn-tabs +utils/hsc2hs_dist-install_EXTRA_HC_OPTS += -fno-warn-tabs |