diff --git a/ghcup b/ghcup index f48116d..4ee75e6 100755 --- a/ghcup +++ b/ghcup @@ -1790,7 +1790,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=$(command -v "${bootstrap_ghc}") edo ./configure --prefix="${inst_location}" + fi emake -j${JOBS} emake install