diff options
-rwxr-xr-x | g | 4 | ||||
-rwxr-xr-x | gi | 19 |
2 files changed, 17 insertions, 6 deletions
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" | 2 | warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" |
3 | exts="-XOverloadedStrings -XRecordWildCards" | 3 | exts="-XOverloadedStrings -XRecordWildCards" |
4 | defs="-DBENCODE_AESON -DTHREAD_DEBUG" | 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" | 5 | hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass" |
6 | 6 | ||
7 | root=${0%/*} | 7 | root=${0%/*} |
@@ -9,7 +9,7 @@ cd "$root" | |||
9 | 9 | ||
10 | me=${0##*/} | 10 | me=${0##*/} |
11 | me=${me%.*} | 11 | me=${me%.*} |
12 | ghc \ | 12 | ghc -threaded \ |
13 | $hide \ | 13 | $hide \ |
14 | $exts \ | 14 | $exts \ |
15 | $defs \ | 15 | $defs \ |
@@ -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 | "$@" |