Skip to content

Commit cb90988

Browse files
committed
add foundation-pak build script for ghc-9.2.7-wpc
1 parent 8a854a4 commit cb90988

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
set -x -e
2+
3+
############
4+
# setup
5+
############
6+
7+
cabal update
8+
cabal install --overwrite-policy=always alex-3.2.6 happy-1.20.0 zip-cmd-1.0.1
9+
10+
############
11+
# checkout GHC source and build
12+
############
13+
14+
mkdir foundation-pak-ghc-9.2.7-wpc
15+
cd foundation-pak-ghc-9.2.7-wpc
16+
17+
git clone https://github.com/grin-compiler/ghc-wpc.git
18+
19+
cd ghc-wpc
20+
21+
git checkout ghc-9.2-wpc-design2
22+
23+
git submodule update --init --recursive
24+
25+
./boot
26+
./configure
27+
28+
./hadrian/build-stack foundation-pak -j
29+
30+
./hadrian/build-stack binary-dist-xz -j
31+
32+
############
33+
# output foundation pak and ghc-9.2.7-wpc bindist
34+
############
35+
36+
ls -lah _build/foundation-pak/*.zip
37+
ls -lah _build/bindist/*.xz

0 commit comments

Comments
 (0)