devel: check only old version cases. turn parallel GC off for slow GHC versions.

This commit is contained in:
Kei Hibino 2021-07-20 16:41:00 +09:00
parent 5943d64d02
commit 4f833f8814

View File

@ -16,22 +16,21 @@ v1 = $$(case $$(cabal --numeric-version) in \
ncpu = $(shell cat /proc/cpuinfo | egrep '^processor' | wc -l)
jobs = $$(case $$(ghc --numeric-version) in \
9.*|8.*|7.10.*|7.8.*) \
echo -j$$(expr $(ncpu) '*' 3 '/' 4) \
;; \
7.6.*|7.4.*) \
7.4.*|7.6.*) \
;; \
*) \
echo -j$$(expr $(ncpu) '*' 3 '/' 4) \
;; \
esac)
gc = $$(case $$(ghc --numeric-version) in \
9.*|8.8.*|8.6.*|8.4.*|8.2.*) \
echo --ghc-option=+RTS --ghc-option=-qn2 --ghc-option=-RTS \
7.4.*|7.6.*) \
;; \
8.0.*|7.*) \
7.8.*|7.10.*|8.0.*) \
echo --ghc-option=+RTS --ghc-option=-qg --ghc-option=-RTS \
;; \
*) \
echo --ghc-option=+RTS --ghc-option=-qn2 --ghc-option=-RTS \
;; \
esac)