[commit: ghc] master: ghc-heap: Add dependency from GHC.Exts.Heap.Closures to InfoTableProf (64fd0fa)

git at git.haskell.org git at git.haskell.org
Wed May 30 22:07:17 UTC 2018


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

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

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

commit 64fd0fac838426fb87322712da34dabd211c3d89
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed May 30 11:20:58 2018 -0400

    ghc-heap: Add dependency from GHC.Exts.Heap.Closures to InfoTableProf
    
    `ghc -M` currently doesn't properly account for ways when generating
    dependencies (#15197). This import ensures correct build-ordering between this
    module and GHC.Exts.Heap.InfoTableProf. Otherwise the profiled build may fail as
    described in #15197.


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

64fd0fac838426fb87322712da34dabd211c3d89
 libraries/ghc-heap/GHC/Exts/Heap/Closures.hs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
index f355a62..09a94a0 100644
--- a/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
+++ b/libraries/ghc-heap/GHC/Exts/Heap/Closures.hs
@@ -23,6 +23,12 @@ import GHC.Exts.Heap.Constants
 import GHC.Exts.Heap.InfoTableProf
 #else
 import GHC.Exts.Heap.InfoTable
+
+-- `ghc -M` currently doesn't properly account for ways when generating
+-- dependencies (#15197). This import ensures correct build-ordering between
+-- this module and GHC.Exts.Heap.InfoTableProf. It should be removed when #15197
+-- is fixed.
+import GHC.Exts.Heap.InfoTableProf ()
 #endif
 
 import Data.Bits



More information about the ghc-commits mailing list