Skip to content

Commit 204ad20

Browse files
committed
Add a run script for cross-compilers
I tend to forget things. This script should help me to remember how the proxy can be used to test a cross-compiler.
1 parent 7c39d6f commit 204ad20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

run.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# Simple script to build and start the proxy. The printed args show how to use
4+
# it for testing a cross-compiler on the same machine.
5+
6+
set -e
7+
8+
GHC="${GHC:-ghc}"
9+
port=5005
10+
11+
cabal build -w "$GHC" exe:iserv-proxy
12+
echo ghc-args: -fexternal-interpreter -pgmi=$(cabal list-bin -w "$GHC" exe:iserv-proxy) -opti=127.0.0.1 -opti=$port
13+
cabal run -w "$GHC" iserv-proxy-interpreter $port .

0 commit comments

Comments
 (0)