[Git][ghc/ghc][wip/ghc-debug] Add dummy import for PeekProfInfo_ProfilingEnabled for non-profiled builds

Sven Tennie gitlab at gitlab.haskell.org
Sat Jul 25 16:34:56 UTC 2020



Sven Tennie pushed to branch wip/ghc-debug at Glasgow Haskell Compiler / GHC


Commits:
2db2bfb3 by Sven Tennie at 2020-07-25T18:34:47+02:00
Add dummy import for PeekProfInfo_ProfilingEnabled for non-profiled builds

This circumvents #15197. Otherwise PeekProfInfo_ProfilingEnabled
wouldn't be available for make-based builds.

- - - - -


1 changed file:

- libraries/ghc-heap/GHC/Exts/Heap.hs


Changes:

=====================================
libraries/ghc-heap/GHC/Exts/Heap.hs
=====================================
@@ -64,6 +64,13 @@ import GHC.Exts.Heap.ProfInfo.Types
 import GHC.Exts.Heap.ProfInfo.PeekProfInfo_ProfilingEnabled
 import GHC.Exts.Heap.InfoTableProf
 #else
+-- This import makes PeekProfInfo_ProfilingEnabled available in make-based
+-- builds. See #15197 for details (even though the related patch didn't
+-- seem to fix the issue).
+-- GHC.Exts.Heap.Closures uses the same trick to include
+-- GHC.Exts.Heap.InfoTableProf into make-based builds.
+import GHC.Exts.Heap.ProfInfo.PeekProfInfo_ProfilingEnabled ()
+
 import GHC.Exts.Heap.ProfInfo.PeekProfInfo_ProfilingDisabled
 import GHC.Exts.Heap.InfoTable
 #endif



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2db2bfb3a0d2a0017864e1d4c1491910213bb880

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2db2bfb3a0d2a0017864e1d4c1491910213bb880
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200725/538b66b7/attachment.html>


More information about the ghc-commits mailing list