Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Expose an option to control the number of Shake threads (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra authored Mar 27, 2020
1 parent 116a5ba commit 3960533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exe/Arguments.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data Arguments = Arguments
,argsVersion :: Bool
,argsShakeProfiling :: Maybe FilePath
,argsTesting :: Bool
,argsThreads :: Int
}

getArguments :: IO Arguments
Expand All @@ -31,3 +32,4 @@ arguments = Arguments
<*> switch (long "version" <> help "Show ghcide and GHC versions")
<*> optional (strOption $ long "shake-profiling" <> metavar "DIR" <> help "Dump profiling reports to this directory")
<*> switch (long "test" <> help "Enable additional lsp messages used by the testsuite")
<*> option auto (short 'j' <> help "Number of threads (0: automatic)" <> metavar "NUM" <> value 0 <> showDefault)
1 change: 1 addition & 0 deletions exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ main = do
{ optReportProgress = clientSupportsProgress caps
, optShakeProfiling = argsShakeProfiling
, optTesting = argsTesting
, optThreads = argsThreads
, optInterfaceLoadingDiagnostics = argsTesting
}
debouncer <- newAsyncDebouncer
Expand Down

0 comments on commit 3960533

Please sign in to comment.