[commit: ghc] master: Filter out `-Rghc-timing` for V=0 builds (#10223) (43351ff)

git at git.haskell.org git at git.haskell.org
Wed Apr 1 17:30:46 UTC 2015


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

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

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

commit 43351ff0905a098c382487c502ccad53783ba9ee
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Wed Apr 1 19:30:16 2015 +0200

    Filter out `-Rghc-timing` for V=0 builds (#10223)
    
    Reviewed By: austin
    
    Differential Revision: https://phabricator.haskell.org/D783


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

43351ff0905a098c382487c502ccad53783ba9ee
 compiler/ghc.mk    |  6 ++++++
 mk/build.mk.sample | 11 ++++-------
 validate           |  1 -
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index c8cd557..0009126 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"
 
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index d016e84..216f92c 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -87,7 +87,6 @@ ifeq "$(BuildFlavour)" "perf"
 SRC_HC_OPTS     = -O -H64m
 GhcStage1HcOpts = -O $(GhcFAsm)
 GhcStage2HcOpts = -O2 $(GhcFAsm)
-GhcHcOpts       = -Rghc-timing
 GhcLibHcOpts    = -O2
 #SplitObjs
 #HADDOCK_DOCS
@@ -109,7 +108,6 @@ ifeq "$(BuildFlavour)" "perf-llvm"
 SRC_HC_OPTS     = -O -H64m -fllvm
 GhcStage1HcOpts = -O -fllvm
 GhcStage2HcOpts = -O2 -fllvm
-GhcHcOpts       = -Rghc-timing
 GhcLibHcOpts    = -O2
 #SplitObjs
 #HADDOCK_DOCS
@@ -128,7 +126,6 @@ ifeq "$(BuildFlavour)" "perf-cross"
 SRC_HC_OPTS        = -O -H64m -fllvm
 GhcStage1HcOpts    = -O2
 GhcStage2HcOpts    = -O2 -fllvm
-GhcHcOpts          = -Rghc-timing
 GhcLibHcOpts       = -O2
 #SplitObjs
 HADDOCK_DOCS       = NO
@@ -238,8 +235,8 @@ endif
 ifeq "$(BuildFlavour)" "devel1"
 
 SRC_HC_OPTS        = -H64m -O $(GhcFAsm)
-GhcStage1HcOpts    = -Rghc-timing -O0 -DDEBUG
-GhcStage2HcOpts    = -Rghc-timing -O $(GhcFAsm)
+GhcStage1HcOpts    = -O0 -DDEBUG
+GhcStage2HcOpts    = -O $(GhcFAsm)
 GhcLibHcOpts       = -O -dcore-lint
 SplitObjs          = NO
 HADDOCK_DOCS       = NO
@@ -256,8 +253,8 @@ endif
 ifeq "$(BuildFlavour)" "devel2"
 
 SRC_HC_OPTS        = -H64m -O $(GhcFAsm)
-GhcStage1HcOpts    = -Rghc-timing -O $(GhcFAsm)
-GhcStage2HcOpts    = -Rghc-timing -O0 -DDEBUG
+GhcStage1HcOpts    = -O $(GhcFAsm)
+GhcStage2HcOpts    = -O0 -DDEBUG
 GhcLibHcOpts       = -O -dcore-lint
 SplitObjs          = NO
 HADDOCK_DOCS       = NO
diff --git a/validate b/validate
index 109d521..95d3af5 100755
--- a/validate
+++ b/validate
@@ -172,7 +172,6 @@ echo "ValidateHpc=$hpc"     >> mk/are-validating.mk
 
 if [ $be_quiet -eq 1 ]; then
     echo "V=0"              >> mk/are-validating.mk # Less gunk
-    echo "GhcHcOpts="       >> mk/are-validating.mk # Remove -Rghc-timing
 fi
 
 if [ $use_dph -eq 1 ]; then



More information about the ghc-commits mailing list