Skip to content

Commit 1ffbd2b

Browse files
authored
Enable -threaded and -rtsopts for compile server (#157)
-threaded is probably a good idea even if we aren't using multiple cores, because it allows using OS threading, which I think should be able to leverage the OS to interleave work more efficiently, particularly for FFI calls. It also means that if we want to deploy the compile server on a box with more cores, that's easy to do, we just tweak the RTS configuration. See <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html?highlight=threaded#ghc-flag--threaded> Being able to tweak the RTS options (enabled by -rtsopts) has been absolutely essential for getting Pursuit to run reliably and to keep memory usage under control, so I'm sure we will want it here too.
1 parent fd0409b commit 1ffbd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trypurescript.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ executable trypurescript
3232
main-is: Main.hs
3333
buildable: True
3434
other-modules: Main
35-
ghc-options: -Werror -O2
35+
ghc-options: -Werror -O2 -threaded -rtsopts

0 commit comments

Comments
 (0)