summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
Diffstat (limited to 'g')
-rwxr-xr-xg5
1 files changed, 3 insertions, 2 deletions
diff --git a/g b/g
index 4b8e922a..e0d5c2b4 100755
--- a/g
+++ b/g
@@ -2,6 +2,7 @@
2 2
3rootname=$(cat /etc/debian_chroot 2>/dev/null) 3rootname=$(cat /etc/debian_chroot 2>/dev/null)
4echo $PATH | grep '\.stack' >/dev/null && rootname="stack" 4echo $PATH | grep '\.stack' >/dev/null && rootname="stack"
5BUILDB=build/b
5 6
6warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" 7warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes"
7exts="-XOverloadedStrings -XRecordWildCards" 8exts="-XOverloadedStrings -XRecordWildCards"
@@ -19,7 +20,7 @@ if [ "$rootname" == "stretch" ]
19 then 20 then
20 echo "Building with cryptonite backport. (chroot = $rootname)" 21 echo "Building with cryptonite backport. (chroot = $rootname)"
21 defs="$defs -DCRYPTONITE_BACKPORT -icryptonite-backport" 22 defs="$defs -DCRYPTONITE_BACKPORT -icryptonite-backport"
22 warn="build/b/cbits/cryptonite_salsa.o build/b/cbits/cryptonite_xsalsa.o $warn" 23 warn="$BUILDB/cbits/cryptonite_salsa.o $BUILDB/cbits/cryptonite_xsalsa.o $warn"
23 fi 24 fi
24 25
25root=${0%/*} 26root=${0%/*}
@@ -35,6 +36,6 @@ ghc -threaded \
35 -iPresence \ 36 -iPresence \
36 -iArchive \ 37 -iArchive \
37 -isrc \ 38 -isrc \
38 build/b/Presence/monitortty.o \ 39 $BUILDB/Presence/monitortty.o \
39 $warn \ 40 $warn \
40 "$@" 41 "$@"