Skip to content
Snippets Groups Projects
Commit 04724566 authored by Ben Gamari's avatar Ben Gamari
Browse files

hadrian: Apply concurrency limit to hlint invocations

Replicates the logic introduced in `master` in !5439.
parent 38066602
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,12 @@ base = do
let include2 = stage1Lib
let include3 = topDir </> buildDir </> "stage1/libraries/base/build/include"
let hlintYaml = topDir </> "libraries/base/.hlint.yaml"
threads <- shakeThreads <$> getShakeOptions
hostArch <- (<> "_HOST_ARCH") <$> setting HostArch
let cmdLine = "hlint -j --cpp-define " <> hostArch <> " --cpp-include=" <> include0 <>
let cmdLine = "hlint" <>
" -j" <> show threads <>
" --cpp-define " <> hostArch <>
" --cpp-include=" <> include0 <>
" --cpp-include=" <> include1 <>
" --cpp-include=" <> include2 <>
" --cpp-include=" <> include3 <>
......@@ -63,7 +67,10 @@ compiler = do
let include1 = stage1Lib
let hlintYaml = topDir </> "compiler/.hlint.yaml"
hostArch <- (<> "_HOST_ARCH") <$> setting HostArch
let cmdLine = "hlint -j --cpp-define " <> hostArch <>
threads <- shakeThreads <$> getShakeOptions
let cmdLine = "hlint" <>
" -j" <> show threads <>
" --cpp-define " <> hostArch <>
" --cpp-include=" <> include0 <>
" --cpp-include=" <> include1 <>
" --cpp-include=" <> compilerDir <>
......
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