Wolfgang Jeltsch pushed to branch wip/jeltsch/ghc-9-14-building-base at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • .gitlab/base-ci.sh
    ... ... @@ -46,9 +46,14 @@ do
    46 46
       curl https://downloads.haskell.org/~ghc/${ghc_version}/${archive_file} \
    
    47 47
         >${ghc_version}.tar.xz
    
    48 48
       tar -xJf ${ghc_version}.tar.xz
    
    49
    -  cd ghc-${ghc_version}-*
    
    50
    -  ./configure --prefix "${project_root}/other-ghcs/opt/${ghc_version}"
    
    51
    -  make install
    
    49
    +  if [ -f ghc-${ghc_version}-*/configure ]
    
    50
    +  then # Unix
    
    51
    +    cd ghc-${ghc_version}-*
    
    52
    +    ./configure --prefix "${project_root}/other-ghcs/opt/${ghc_version}"
    
    53
    +    make install
    
    54
    +  else # Windows
    
    55
    +    mv ghc-${ghc_version}-* "${project_root}/other-ghcs/opt/${ghc_version}"
    
    56
    +  fi
    
    52 57
       cd ${project_root}
    
    53 58
     
    
    54 59
       # Build `base` with the installed GHC