Created
October 7, 2020 13:15
-
-
Save tolysz/cad483acfe90e4b8d2500f54450c4833 to your computer and use it in GitHub Desktop.
build-ghc.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export TEMP=/extra/devel/ghc/tmp | |
#export TMP=/extra/devel/ghc/tmp | |
export GHC_VERSION=8.6.5 | |
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/ && \ | |
git clone -b ghc-${GHC_VERSION}-release --recursive git://github.com/ghc/ghc ghc-${GHC_VERSION} && \ | |
cd ghc-${GHC_VERSION}/ && \ | |
cp mk/build.mk.sample mk/build.mk && \ | |
sed -i 's/^#BuildFlavour *= *perf$/BuildFlavour = perf/' mk/build.mk && \ | |
./boot && \ | |
./configure --enable-tarballs-autodownload && \ | |
sed -i 's/^TAR_COMP *= *bzip2$/TAR_COMP = xz/' mk/config.mk && \ | |
make -j$(cat /proc/cpuinfo|grep processor|wc -l) && \ | |
make binary-dist |
Author
tolysz
commented
Oct 7, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment