summaryrefslogtreecommitdiff
path: root/compiler/ghc.mk
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-04-01 19:30:16 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-04-01 19:30:31 +0200
commit43351ff0905a098c382487c502ccad53783ba9ee (patch)
treecf1977f950d522a8412889fb709f05346686eb93 /compiler/ghc.mk
parent3749c05216339df60e1ffbb28c8b957ad5020b00 (diff)
downloadhaskell-43351ff0905a098c382487c502ccad53783ba9ee.tar.gz
Filter out `-Rghc-timing` for V=0 builds (#10223)
Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D783
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r--compiler/ghc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index c8cd557ae5..000912674d 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -676,9 +676,15 @@ compiler_stage2_CONFIGURE_OPTS += --disable-library-for-ghci
compiler_stage3_CONFIGURE_OPTS += --disable-library-for-ghci
# after build-package, because that sets compiler_stage1_HC_OPTS:
+ifeq "$(V)" "0"
+compiler_stage1_HC_OPTS += $(filter-out -Rghc-timing,$(GhcHcOpts)) $(GhcStage1HcOpts)
+compiler_stage2_HC_OPTS += $(filter-out -Rghc-timing,$(GhcHcOpts)) $(GhcStage2HcOpts)
+compiler_stage3_HC_OPTS += $(filter-out -Rghc-timing,$(GhcHcOpts)) $(GhcStage3HcOpts)
+else
compiler_stage1_HC_OPTS += $(GhcHcOpts) $(GhcStage1HcOpts)
compiler_stage2_HC_OPTS += $(GhcHcOpts) $(GhcStage2HcOpts)
compiler_stage3_HC_OPTS += $(GhcHcOpts) $(GhcStage3HcOpts)
+endif
ifneq "$(BINDIST)" "YES"