[commit: ghc] master: Fix the build with GHC < 7.4.1 (20a2dfc)

Ian Lynagh igloo at earth.li
Thu Feb 16 21:56:28 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/20a2dfc10f908464500089eab425480dc4ad44d4

>---------------------------------------------------------------

commit 20a2dfc10f908464500089eab425480dc4ad44d4
Author: Ian Lynagh <igloo at earth.li>
Date:   Thu Feb 16 16:50:23 2012 +0000

    Fix the build with GHC < 7.4.1

>---------------------------------------------------------------

 compiler/coreSyn/CoreLint.lhs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/compiler/coreSyn/CoreLint.lhs b/compiler/coreSyn/CoreLint.lhs
index cd4e252..650e63b 100644
--- a/compiler/coreSyn/CoreLint.lhs
+++ b/compiler/coreSyn/CoreLint.lhs
@@ -7,7 +7,6 @@
 A ``lint'' pass to check for Core correctness
 
 \begin{code}
-{-# OPTIONS_GHC -fprof-auto #-}
 {-# OPTIONS -fno-warn-tabs #-}
 -- The above warning supression flag is a temporary kludge.
 -- While working on this module you are encouraged to remove it and
@@ -15,6 +14,10 @@ A ``lint'' pass to check for Core correctness
 --     http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
 -- for details
 
+#if __GLASGOW_HASKELL__ >= 704
+{-# OPTIONS_GHC -fprof-auto #-}
+#endif
+
 module CoreLint ( lintCoreBindings, lintUnfolding ) where
 
 #include "HsVersions.h"





More information about the Cvs-ghc mailing list