[Git][ghc/ghc][wip/happy-version] configure: Allow happy-2.0.2
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Fri Sep 27 16:47:54 UTC 2024
Matthew Pickering pushed to branch wip/happy-version at Glasgow Haskell Compiler / GHC
Commits:
438c5b49 by Matthew Pickering at 2024-09-27T17:47:45+01: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/438c5b49763578f36b017b9a20abd7e8e19a9b84
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/438c5b49763578f36b017b9a20abd7e8e19a9b84
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/20240927/0ed3adab/attachment.html>
More information about the ghc-commits
mailing list