Revert "Preliminary bindist rule (#555)" (#557)
[hadrian.git] / build.sh
index 7c070e9..13daebe 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -30,22 +30,5 @@ function rl {
 
 root="$(dirname "$(rl "$0")")"
 
-mkdir -p "$root/.shake"
-
-ghc                           \
-    "$root/src/Main.hs"       \
-    -Wall                     \
-    -fno-warn-name-shadowing  \
-    -XRecordWildCards         \
-    -i"$root/src"             \
-    -rtsopts                  \
-    -with-rtsopts=-I0         \
-    -outputdir="$root/.shake" \
-    -j -O                     \
-    -o "$root/.shake/build"
-
-"$root/.shake/build"       \
-    --lint                 \
-    --directory "$root/.." \
-    --colour               \
-    "$@"
+# By default on Linux/MacOS we build Hadrian using Cabal
+(. "$root/build.cabal.sh" "$@")