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

GHC ghc-devs at haskell.org
Thu Aug 22 21:11:08 UTC 2013


#910: --make should have a -j flag for parallel building
-------------------------------------+------------------------------------
        Reporter:  igloo             |            Owner:
            Type:  feature request   |           Status:  patch
        Priority:  normal            |        Milestone:  _|_
       Component:  Compiler          |          Version:  6.4.2
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:  N/A               |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by rrnewton):

 Ah, good, it sounds like you've handled exceptions carefully.  I missed
 the "try" on line 133 in my first cursory look.

 https://github.com/parcs/ghc/blob/0aaeb70aa3291cf2ab90af150c3790cf4981db2a/compiler/main/GhcMake.hs#L681

 I was expecting something right after the fork.  But it looks like the
 only code that happens outside of that "try" is the newIORef, putMVar, and
 writeLogQueue... reasonably safe.

 Regarding printing, I guess ErrUtils.errorMsg is thread-safe?

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




More information about the ghc-tickets mailing list