[GHC] #13686: Compile a few modules for profiling unconditionally

GHC ghc-devs at haskell.org
Thu May 11 05:07:15 UTC 2017


#13686: Compile a few modules for profiling unconditionally
-------------------------------------+-------------------------------------
           Reporter:  dfeuer         |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:  8.4.1
          Component:  Build System   |           Version:  8.2.1-rc2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 When GHC is built without enabling profiling of the libraries, it is
 utterly impossible to compile anything ''with'' profiling. I would like to
 compile just enough libraries with profiling, unconditionally, to be able
 to compile any module with profiling as long as it satisfies approximately
 three conditions:

 1. It uses `NoImplicitPrelude`.
 2. It does not import any modules from a boot package.
 3. It does not use `TemplateHaskell` (I'm not sure if this is necessary,
 but I wouldn't be surprised if it were).

 To make this work, I think we would need to compile at least `GHC.Types`
 and the `Data.Typeable.Internal` for profiling in all cases.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13686>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list