From 8bde9b936506f264998473e8e5f02da66ccad2bc Mon Sep 17 00:00:00 2001 From: Sam Halliday Date: Wed, 28 Aug 2019 20:35:08 +0100 Subject: [PATCH] support compilation of ghc 8.8.1+ --- ghcup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghcup b/ghcup index e812fb6..f5ac0ab 100755 --- a/ghcup +++ b/ghcup @@ -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