[Git][ghc/ghc][master] configure: Allow happy-2.0.2
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Thu Oct 3 02:23:50 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
0029ca91 by Matthew Pickering at 2024-10-02T22:21:54-04:00
configure: Allow happy-2.0.2
happy-2.0.2 can be used to compile GHC.
happy-2.0 and 2.0.1 have bugs which make it unsuitable to use.
The version bound is now == 1.20.* || >= 2.0.2 && < 2.1
Fixes #25276
- - - - -
1 changed file:
- m4/fptools_happy.m4
Changes:
=====================================
m4/fptools_happy.m4
=====================================
@@ -24,10 +24,15 @@ changequote([, ])dnl
])
if test ! -f compiler/GHC/Parser.hs || test ! -f compiler/GHC/Cmm/Parser.hs
then
+ failure_msg="Happy version == 1.20.* || >= 2.0.2 && < 2.1 is required to compile GHC"
FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.20.0],
- [AC_MSG_ERROR([Happy version 1.20 or later is required to compile GHC.])])[]
+ [AC_MSG_ERROR([$failure_msg])])[]
FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-ge],[1.21.0],
- [AC_MSG_ERROR([Happy version 1.20 or earlier is required to compile GHC.])])[]
+ FP_COMPARE_VERSIONS([$fptools_cv_happy_version], [-le], [2.0.1],
+ [AC_MSG_ERROR([$failure_msg])])[])[]
+ FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-ge],[2.1.0],
+ [AC_MSG_ERROR([$failure_msg])])[]
+
fi
HappyVersion=$fptools_cv_happy_version;
AC_SUBST(HappyVersion)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0029ca91c845dd4530eb2c4606ad5bd59775cec2
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0029ca91c845dd4530eb2c4606ad5bd59775cec2
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241002/7daf8843/attachment-0001.html>
More information about the ghc-commits
mailing list