[commit: ghc] master: Limit upper versions of Alex and Happy (b6bc326)

git at git.haskell.org git at git.haskell.org
Wed Sep 18 09:48:33 CEST 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b6bc3263d0099e79b437ac5f3c053452c608c710/ghc

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

commit b6bc3263d0099e79b437ac5f3c053452c608c710
Author: Jan Stolarek <jan.stolarek at p.lodz.pl>
Date:   Wed Sep 18 08:47:58 2013 +0100

    Limit upper versions of Alex and Happy
    
    This is temporary until new bool primops have been pushed.


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

b6bc3263d0099e79b437ac5f3c053452c608c710
 aclocal.m4 |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/aclocal.m4 b/aclocal.m4
index 151cc2e..1e628b1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -869,6 +869,11 @@ then
     FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.16],
       [AC_MSG_ERROR([Happy version 1.16 or later is required to compile GHC.])])[]
 fi
+if test ! -f compiler/parser/Parser.hs || test ! -f compiler/cmm/CmmParse.hs || test ! -f compiler/parser/ParserCore.hs
+then
+    FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-gt],[1.18.11],
+      [AC_MSG_ERROR([Happy version 1.18.11 or earlier is required to compile GHC.])])[]
+fi
 HappyVersion=$fptools_cv_happy_version;
 AC_SUBST(HappyVersion)
 ])
@@ -898,6 +903,11 @@ then
     FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.1.0],
       [AC_MSG_ERROR([Alex version 2.1.0 or later is required to compile GHC.])])[]
 fi
+if test ! -f compiler/cmm/CmmLex.hs || test ! -f compiler/parser/Lexer.hs
+then
+    FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-gt],[3.0.5],
+      [AC_MSG_ERROR([Alex version 3.0.5 or earlier is required to compile GHC.])])[]
+fi
 if test ! -f utils/haddock/src/Haddock/Lex.hs
 then
     FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[3.0],




More information about the ghc-commits mailing list