on master help sign in
Merge pull request #1604 from RyanGlScott/master
89790e9Jens Petersen
build-constraints.yaml−3
@@ -2851,7 +2851,6 @@ expected-test-failures:
2851expected-benchmark-failures:
2851expected-benchmark-failures:
2852 - Frames
2852 - Frames
2853 - attoparsec
2853 - attoparsec
2854− - bzlib-conduit
2855 - cipher-aes128
2854 - cipher-aes128
2856 - cryptohash
2855 - cryptohash
2857 - dbus
2856 - dbus
@@ -2864,9 +2863,7 @@ expected-benchmark-failures:
2864 - mongoDB
2863 - mongoDB
2865 - picoparsec
2864 - picoparsec
2866 - rethinkdb
2865 - rethinkdb
2867− - stateWriter
2868 - thyme
2866 - thyme
2869− - vinyl
2870 - warp
2867 - warp
2871 - web-routing
2868 - web-routing
2872 - xmlgen
2869 - xmlgen
debian-bootstrap.sh+11−1
@@ -99,7 +99,9 @@ apt-get install -y \
99 libyaml-dev \
99 libyaml-dev \
100 libzip-dev \
100 libzip-dev \
101 libzmq3-dev \
101 libzmq3-dev \
102+ # The LLVM version should be kept in sync with what GHC requires for its
103+ # LLVM backend (see below for more information).
102− llvm \
104+ llvm-3.7 \
103 m4 \
105 m4 \
104 nettle-dev \
106 nettle-dev \
105 nodejs \
107 nodejs \
@@ -122,3 +124,11 @@ mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
122# faster anyways and uses less RAM.
124# faster anyways and uses less RAM.
123update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
125update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
124update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
126update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
127+
128+# GHC requires a specific LLVM version on the system PATH for its LLVM backend.
129+# This version is tracked here:
130+# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
131+#
132+# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
133+update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
134+update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50