support compilation of ghc 8.8.1+

This commit is contained in:
Sam Halliday 2019-08-28 20:35:08 +01:00
parent 4bf9bbf72f
commit 8bde9b9365
1 changed files with 5 additions and 1 deletions

6
ghcup
View File

@ -1773,7 +1773,11 @@ compile_ghc() {
edo ./boot
edo ./configure --prefix="${inst_location}" --with-ghc="${bootstrap_ghc}"
if echo "${myghcver}" | sed 's/[.]//g' | awk '{ exit ($0 < 881) ? 0 : 1 }' ; then
edo ./configure --prefix="${inst_location}" --with-ghc="${bootstrap_ghc}"
else
GHC=$(which ${bootstrap_ghc}) edo ./configure --prefix="${inst_location}"
fi
emake -j${JOBS}
emake install