summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-06-01 14:16:27 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-06-04 23:58:28 +0200
commit75c6e0684dda585c37b4ac254cd7a13537a59a91 (patch)
tree6dd2b23aab0eeb81246393d53b5e03a9740605b2 /rules
parentd8f66f1b5fcd79a42141b98dd49d3aef202af78c (diff)
downloadhaskell-75c6e0684dda585c37b4ac254cd7a13537a59a91.tar.gz
Build: make configure and ghc-pkg a bit less chatty
Only when V=0. Differential Revision: https://phabricator.haskell.org/D943
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-data.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/build-package-data.mk b/rules/build-package-data.mk
index 817bf8db9e..edf3216c80 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