Switch version detection logic, by @trac-lierdakil
This commit is contained in:
parent
b82146d346
commit
af5fda0cd6
8
ghcup
8
ghcup
@ -1790,10 +1790,12 @@ compile_ghc() {
|
|||||||
|
|
||||||
|
|
||||||
edo ./boot
|
edo ./boot
|
||||||
if echo "${myghcver}" | sed 's/[.]//g' | awk '{ exit ($0 < 881) ? 0 : 1 }' ; then
|
if [ "$(echo "${myghcver}" | awk -F. '{printf"%d%03d",$1,$2;}')" -ge 8008 ]; then
|
||||||
edo ./configure --prefix="${inst_location}" --with-ghc="${bootstrap_ghc}"
|
status_message "GHC-8.8"
|
||||||
else
|
|
||||||
GHC=$(command -v "${bootstrap_ghc}") edo ./configure --prefix="${inst_location}"
|
GHC=$(command -v "${bootstrap_ghc}") edo ./configure --prefix="${inst_location}"
|
||||||
|
else
|
||||||
|
status_message "GHC-8.6"
|
||||||
|
edo ./configure --prefix="${inst_location}" --with-ghc="${bootstrap_ghc}"
|
||||||
fi
|
fi
|
||||||
emake -j${JOBS}
|
emake -j${JOBS}
|
||||||
emake install
|
emake install
|
||||||
|
Loading…
Reference in New Issue
Block a user