Skip to content
Snippets Groups Projects
Commit 0a1c167a authored by Matthew Pickering's avatar Matthew Pickering Committed by Ben Gamari
Browse files

Add support for using GHC's -jsem option

* 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.
parent 249374d1
No related branches found
No related tags found
No related merge requests found
Showing
with 547 additions and 204 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment