Hadrian: Allow passing CABFLAGS into build.cabal.sh
authorMatthew Pickering <matthewtpickering@gmail.com>
Sun, 10 Mar 2019 17:32:47 +0000 (17:32 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 12 Mar 2019 13:04:52 +0000 (09:04 -0400)
Setting `CABFLAGS=args` will pass the additional arguments to cabal
when it is invoked.

hadrian/build.cabal.sh

index 13ef927..55ae958 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 CABAL=cabal
-CABFLAGS="--disable-documentation --disable-profiling --disable-library-profiling"
+CABFLAGS="--disable-documentation --disable-profiling --disable-library-profiling $CABFLAGS"
 
 # It is currently more robust to pass Cabal an absolute path to the project file.
 PROJ="$PWD/hadrian/cabal.project"