[commit: ghc] master: Build: make configure and ghc-pkg a bit less chatty (75c6e06)

git at git.haskell.org git at git.haskell.org
Thu Jun 4 22:01:03 UTC 2015


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

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

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

commit 75c6e0684dda585c37b4ac254cd7a13537a59a91
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Mon Jun 1 14:16:27 2015 +0200

    Build: make configure and ghc-pkg a bit less chatty
    
    Only when V=0.
    
    Differential Revision: https://phabricator.haskell.org/D943


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

75c6e0684dda585c37b4ac254cd7a13537a59a91
 rules/build-package-data.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 817bf8d..edf3216 100644
--- a/rules/build-package-data.mk
+++ b/rules/build-package-data.mk
@@ -18,6 +18,17 @@ $(call profStart, build-package-data($1,$2,$3))
 # $2 = distdir
 # $3 = GHC stage to use (0 == bootstrapping compiler)
 
+ifeq "$(V)" "0"
+$1_$2_CONFIGURE_OPTS += -v0 --configure-option=--quiet
+
+# Cabal always passes --with-compiler and --with-gcc to library configure
+# scripts, resulting in the following useless (for us) warning in the logs:
+# "configure: WARNING: unrecognized options: --with-compiler, --with-gcc"
+$1_$2_CONFIGURE_OPTS += --configure-option=--disable-option-checking
+
+$1_$2_GHC_PKG_OPTS += -v0
+endif
+
 $1_$2_CONFIGURE_OPTS += --disable-library-for-ghci
 ifeq "$$(filter v,$$($1_$2_WAYS))" "v"
 $1_$2_CONFIGURE_OPTS += --enable-library-vanilla



More information about the ghc-commits mailing list