diff options
Diffstat (limited to 'g')
-rwxr-xr-x | g | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,8 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | args="-fwarn-unused-imports -O2" | 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" | ||
3 | 6 | ||
4 | root=${0%/*} | 7 | root=${0%/*} |
5 | cd "$root" | 8 | cd "$root" |
@@ -7,9 +10,13 @@ cd "$root" | |||
7 | me=${0##*/} | 10 | me=${0##*/} |
8 | me=${me%.*} | 11 | me=${me%.*} |
9 | ghc \ | 12 | ghc \ |
13 | $hide \ | ||
14 | $exts \ | ||
15 | $defs \ | ||
10 | -hidir build/$me -odir build/$me \ | 16 | -hidir build/$me -odir build/$me \ |
11 | -iPresence \ | 17 | -iPresence \ |
12 | -iArchive \ | 18 | -iArchive \ |
19 | -isrc \ | ||
13 | build/b/Presence/monitortty.o \ | 20 | build/b/Presence/monitortty.o \ |
14 | $args \ | 21 | $warn \ |
15 | "$@" | 22 | "$@" |