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