[commit: ghc] master: Hadrian: Allow passing CABFLAGS into build.cabal.sh (b232231)

git at git.haskell.org git at git.haskell.org
Tue Mar 12 13:15:07 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b232231065f5e40ae3a6bd515bb42330cf484fcc/ghc

>---------------------------------------------------------------

commit b232231065f5e40ae3a6bd515bb42330cf484fcc
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Sun Mar 10 17:32:47 2019 +0000

    Hadrian: Allow passing CABFLAGS into build.cabal.sh
    
    Setting `CABFLAGS=args` will pass the additional arguments to cabal
    when it is invoked.


>---------------------------------------------------------------

b232231065f5e40ae3a6bd515bb42330cf484fcc
 hadrian/build.cabal.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadrian/build.cabal.sh b/hadrian/build.cabal.sh
index 13ef927..55ae958 100755
--- a/hadrian/build.cabal.sh
+++ b/hadrian/build.cabal.sh
@@ -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"



More information about the ghc-commits mailing list