Andreas Klebinger pushed to branch ghc-9.10 at Glasgow Haskell Compiler / GHC

Commits:

3 changed files:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -2,7 +2,7 @@ variables:
    2 2
       GIT_SSL_NO_VERIFY: "1"
    
    3 3
     
    
    4 4
       # Commit of ghc/ci-images repository from which to pull Docker images
    
    5
    -  DOCKER_REV: a9297a370025101b479cfd4977f8f910814e03ab
    
    5
    +  DOCKER_REV: c33314758e1186208b9f7e926e05469a8cfc0e05
    
    6 6
     
    
    7 7
       # Sequential version number of all cached things.
    
    8 8
       # Bump to invalidate GitLab CI cache.
    

  • m4/fptools_alex.m4
    ... ... @@ -23,10 +23,16 @@ changequote([, ])dnl
    23 23
     ])
    
    24 24
     if test ! -f compiler/GHC/Parser/Lexer.hs || test ! -f compiler/GHC/Cmm/Lexer.hs
    
    25 25
     then
    
    26
    +    if test x"$fptools_cv_alex_version" != x; then
    
    27
    +        fptools_cv_alex_version_display="version $fptools_cv_alex_version";
    
    28
    +    else
    
    29
    +        fptools_cv_alex_version_display="none";
    
    30
    +    fi;
    
    31
    +    failure_msg="Alex version >= 3.2.6 && < 4 is required to compile GHC. (Found: $fptools_cv_alex_version_display)"
    
    26 32
         FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[3.2.6],
    
    27
    -      [AC_MSG_ERROR([Alex >= 3.2.6 && < 4 is required to compile GHC.])])[]
    
    33
    +      [AC_MSG_ERROR([$failure_msg])])[]
    
    28 34
         FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-ge],[4.0.0],
    
    29
    -      [AC_MSG_ERROR([Alex >= 3.2.6 && < 4 is required to compile GHC.])])[]
    
    35
    +      [AC_MSG_ERROR([$failure_msg])])[]
    
    30 36
     fi
    
    31 37
     AlexVersion=$fptools_cv_alex_version;
    
    32 38
     AC_SUBST(AlexVersion)
    

  • m4/fptools_happy.m4
    ... ... @@ -13,8 +13,7 @@ AC_DEFUN([FPTOOLS_HAPPY],
    13 13
     AC_SUBST(HappyCmd,$HAPPY)
    
    14 14
     AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
    
    15 15
     changequote(, )dnl
    
    16
    -[
    
    17
    -if test x"$HappyCmd" != x; then
    
    16
    +[if test x"$HappyCmd" != x; then
    
    18 17
        fptools_cv_happy_version=`"$HappyCmd" -v |
    
    19 18
                   grep 'Happy Version' | sed -e 's/Happy Version \([^ ]*\).*/\1/g'` ;
    
    20 19
     else
    
    ... ... @@ -24,10 +23,19 @@ changequote([, ])dnl
    24 23
     ])
    
    25 24
     if test ! -f compiler/GHC/Parser.hs || test ! -f compiler/GHC/Cmm/Parser.hs
    
    26 25
     then
    
    26
    +    if test x"$fptools_cv_happy_version" != x; then
    
    27
    +        fptools_cv_happy_version_display="version $fptools_cv_happy_version";
    
    28
    +    else
    
    29
    +        fptools_cv_happy_version_display="none";
    
    30
    +    fi;
    
    31
    +    failure_msg="Happy version == 1.20.* || >= 2.0.2 && < 2.3 is required to compile GHC. (Found: $fptools_cv_happy_version_display)"
    
    27 32
         FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.20.0],
    
    28
    -      [AC_MSG_ERROR([Happy version 1.20 or later is required to compile GHC.])])[]
    
    33
    +      [AC_MSG_ERROR([$failure_msg])])[]
    
    29 34
         FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-ge],[1.21.0],
    
    30
    -      [AC_MSG_ERROR([Happy version 1.20 or earlier is required to compile GHC.])])[]
    
    35
    +      FP_COMPARE_VERSIONS([$fptools_cv_happy_version], [-le], [2.0.1],
    
    36
    +        [AC_MSG_ERROR([$failure_msg])])[])[]
    
    37
    +    FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-ge],[2.3.0],
    
    38
    +      [AC_MSG_ERROR([$failure_msg])])[]
    
    31 39
     fi
    
    32 40
     HappyVersion=$fptools_cv_happy_version;
    
    33 41
     AC_SUBST(HappyVersion)