From 972ba1210d1bb535c41526ce396c0f086d30b59a Mon Sep 17 00:00:00 2001 From: Mateusz Lenik Date: Tue, 21 Oct 2014 15:34:00 -0500 Subject: 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 --- mk/validate-settings.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mk') 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 -- cgit v1.2.1