Skip to content
  • Matthew Pickering's avatar
    0a1c167a
    Add support for using GHC's -jsem option · 0a1c167a
    Matthew Pickering authored and Ben Gamari's avatar Ben Gamari committed
    * The top-level user interface to enable the use of the semaphore is the
      `--semaphore` flag. If you pass `-j4 --semaphore` then cabal will
      create a semaphore with 4 slots which is passed to ghc using the
      `-jsem` option so that all GHC processes coordinate to use 4
      capabilities.
    
      - The semaphore logic is provided by a new package `semaphore-compat`
        which provides a cross-platform abstraction for semaphores.
    
    * The low level `./Setup.hs build` interface accepts the `--semaphore
      <SEMAPHORE>` option, which can be used to directly pass the semaphore
      you require to the Setup script.
    0a1c167a
    Add support for using GHC's -jsem option
    Matthew Pickering authored and Ben Gamari's avatar Ben Gamari committed
    * The top-level user interface to enable the use of the semaphore is the
      `--semaphore` flag. If you pass `-j4 --semaphore` then cabal will
      create a semaphore with 4 slots which is passed to ghc using the
      `-jsem` option so that all GHC processes coordinate to use 4
      capabilities.
    
      - The semaphore logic is provided by a new package `semaphore-compat`
        which provides a cross-platform abstraction for semaphores.
    
    * The low level `./Setup.hs build` interface accepts the `--semaphore
      <SEMAPHORE>` option, which can be used to directly pass the semaphore
      you require to the Setup script.
Loading