File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -154,5 +154,21 @@ source-repository-package
154
154
tag: 1c097a1cafb066b264432e6df27bbc959f3dc715
155
155
subdir: contra-tracer
156
156
157
-
158
157
allow-newer:contra-tracer
158
+ allow-older: cborg
159
+
160
+
161
+ -- WASM related
162
+
163
+ source-repository-package
164
+ type: git
165
+ location: https://github.com/amesgen/cborg
166
+ tag: c3b5c696f62d04c0d87f55250bfc0016ab94d800
167
+ subdir: cborg
168
+
169
+
170
+ source-repository-package
171
+ type: git
172
+ location: https://github.com/haskell-wasm/foundation.git
173
+ tag: 8e6dd48527fb429c1922083a5030ef88e3d58dd3
174
+ subdir: basement
Original file line number Diff line number Diff line change 3
3
4
4
source $HOME /.ghc-wasm/env
5
5
6
+ export CONF_CC_OPTS_STAGE2=" $CONF_CC_OPTS_STAGE2 -D_WASI_EMULATED_MMAN"
7
+ export CONF_GCC_LINKER_OPTS_STAGE2=" $CONF_GCC_LINKER_OPTS_STAGE2 -lwasi-emulated-mman"
8
+
6
9
# This should be able to build!
7
10
# cabal build --project-file=cabal-wasm.project cardano-api-wasm --keep-going
8
11
9
- cabal install happy
12
+ # Check if `happy` is already installed
13
+ if ! command -v happy & > /dev/null; then
14
+ echo " Happy is not installed. Installing it now..."
15
+ cabal install happy
16
+ else
17
+ echo " Happy is already installed. Skipping installation."
18
+ fi
19
+
20
+
21
+ wasm32-wasi-cabal build --project-file=cabal-wasm-ledger-only.project \
22
+ cardano-api-wasm-ledger-only
10
23
11
- wasm32-wasi-cabal build --project-file=cabal-wasm-ledger-only.project cardano-api-wasm-ledger-only --keep-going
12
24
13
25
# Hints
14
26
# https://github.com/bradrn/brassica/blob/master/BUILDING.md
You can’t perform that action at this time.
0 commit comments