[GHC] #910: --make should have a -j flag for parallel building

GHC ghc-devs at haskell.org
Fri Oct 16 21:15:15 UTC 2015


#910: --make should have a -j flag for parallel building
-------------------------------------+-------------------------------------
        Reporter:  igloo             |                Owner:
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:  ⊥
       Component:  Compiler          |              Version:  6.4.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  N/A
      Blocked By:  8184, 8235        |             Blocking:
 Related Tickets:  #9221             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rrnewton):

 For me, typical stack builds spend a huge amount of time bottlenecked on
 just one or two ghc compiles.  Yes, we could push towards stack and other
 tools dynamically provisioning cores to GHC instances.  But, in the short
 term GHC doesn't actually get decent parallel scaling anyway (#9221) so I
 really just want `-j2` or `-j3`.  And that limited level of
 oversubscription I'm not very worried about (the overall builds spend so
 little their time with decent parallel utilization anyway).

 Do we have a policy for priorities of env vars versus flags in general?  I
 think command line flags should take precedence.  Then any smart tools
 that know how to manage "ghc -j" can override any system wide default.

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


More information about the ghc-tickets mailing list