-
Notifications
You must be signed in to change notification settings - Fork 1
/
ghc-shake
executable file
·33 lines (33 loc) · 1016 Bytes
/
ghc-shake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
ARGS=()
for var in "$@"; do
if [[ "$var" != '--make' || -n "$DISABLE_SHAKE" ]]
then
ARGS+=("$var")
else
ARGS+=("--frontend")
ARGS+=("GhcShake")
ARGS+=("-ffrontend-opt")
ARGS+=("--digest-and")
ARGS+=("-ffrontend-opt")
ARGS+=("--profile")
#ARGS+=("-ffrontend-opt")
#ARGS+=("--debug")
#ARGS+=("-ffrontend-opt")
#ARGS+=("--keep-going")
#ARGS+=("-ffrontend-opt")
#ARGS+=("--progress=record")
#ARGS+=("-ffrontend-opt")
#ARGS+=("--no-time")
ARGS+=("-ffrontend-opt")
ARGS+=("--exception")
ARGS+=("-package-db")
ARGS+=("/home/ezyang/.cabal/store/ghc-8.0.1/package.db")
ARGS+=("-package-db")
ARGS+=("/srv/code/ghc-shake/dist-newstyle/packagedb/ghc-8.0.1")
ARGS+=("-plugin-package")
ARGS+=("ghc-shake")
ARGS+=("-Wredundant-constraints")
fi
done
exec "$(dirname $(realpath $0))/ghc" "${ARGS[@]}" $SHAKE_ARGS