summaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
Diffstat (limited to 'p')
-rwxr-xr-xp20
1 files changed, 17 insertions, 3 deletions
diff --git a/p b/p
index 63dee6c2..1ed6e374 100755
--- a/p
+++ b/p
@@ -1,14 +1,28 @@
1#!/bin/bash 1#!/bin/bash
2args="-rtsopts -osuf -prof pf -fprof-auto -fprof-auto-exported" 2warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes"
3exts="-XOverloadedStrings -XRecordWildCards"
4defs="-DBENCODE_AESON -DTHREAD_DEBUG"
5hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass"
6opts="-rtsopts -hisuf p_hi -osuf p_o -prof -fprof-auto -fprof-auto-exported"
3 7
4root=${0%/*} 8root=${0%/*}
5cd "$root" 9cd "$root"
6 10
7me=${0##*/} 11me=${0##*/}
8me=${me%.*} 12me=${me%.*}
13set -x
9ghc \ 14ghc \
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 "$@"