diff options
Diffstat (limited to 'gi')
-rwxr-xr-x | gi | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -1,14 +1,25 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | args="-fwarn-unused-imports" | 2 | warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" |
3 | exts="-XOverloadedStrings -XRecordWildCards" | ||
4 | defs="-DXMPP -DBENCODE_AESON -DTHREAD_DEBUG" | ||
5 | hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass" | ||
3 | 6 | ||
4 | root=${0%/*} | 7 | root=${0%/*} |
5 | cd "$root" | 8 | cd "$root" |
6 | 9 | ||
7 | me=g | 10 | me=${0##*/} |
8 | ghci \ | 11 | me=${me%.*} |
12 | ghci -fobject-code \ | ||
13 | $hide \ | ||
14 | $exts \ | ||
15 | $defs \ | ||
9 | -hidir build/$me -odir build/$me \ | 16 | -hidir build/$me -odir build/$me \ |
10 | -iPresence \ | 17 | -iPresence \ |
11 | -iArchive \ | 18 | -iArchive \ |
19 | -isrc \ | ||
20 | -icryptonite-backport \ | ||
12 | build/b/Presence/monitortty.o \ | 21 | build/b/Presence/monitortty.o \ |
13 | $args \ | 22 | build/b/cbits/cryptonite_salsa.o \ |
23 | build/b/cbits/cryptonite_xsalsa.o\ | ||
24 | $warn \ | ||
14 | "$@" | 25 | "$@" |