on master help sign in
Upgrade LLVM
commit3c30c5e700f67f127f5d4ad8229d361840f28817 authorAdam Bergmark <adam@bergmark.nl> dateMon 15 Jun 2020, 08:32 (6 years ago) parent6ae5213
1 file changed+6−5
debian-bootstrap.sh+6−5
debian-bootstrap.sh+6−5
@@ -146,6 +146,7 @@ apt-get install -y \
146146 libzmq3-dev \
147147 llvm-7 \
148148 llvm-8 \
149+ llvm-9 \
149150 locales \
150151 m4 \
151152 minisat \
@@ -196,9 +197,9 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
196197# This version is tracked here:
197198# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
198199#
199−# GHC 8.8 requires LLVM 7 tools (?) (specifically, llc-7 and opt-7).
200−update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-7" 50
201−update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-7" 50
200+# GHC 8.10 requires LLVM 9 tools (?) (specifically, llc-9 and opt-9).
201+update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-9" 50
202+update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-9" 50
202203
203204# nodejs 10 (nodejs8 in bionic needs conflicting libssl10-dev)
204205curl -sL https://deb.nodesource.com/setup_10.x | bash -
@@ -270,8 +271,8 @@ apt-add-repository multiverse \
270271 && apt-get update \
271272 && apt-get install -y nvidia-cuda-dev
272273
273−export CLANG_PURE_LLVM_LIB_DIR=/usr/lib/llvm-7/lib;
274−export CLANG_PURE_LLVM_INCLUDE_DIR=/usr/lib/llvm-7/include;
274+export CLANG_PURE_LLVM_LIB_DIR=/usr/lib/llvm-9/lib;
275+export CLANG_PURE_LLVM_INCLUDE_DIR=/usr/lib/llvm-9/include;
275276
276277# protoc, for proto-lens-combinators test suite
277278# Instructions from: https://google.github.io/proto-lens/installing-protoc.html