Skip to content

Commit

Permalink
Limit cabal-v1 threads to 64
Browse files Browse the repository at this point in the history
256 threads cause "too many open files errors"
  • Loading branch information
PeterRugg committed Jan 30, 2024
1 parent 48b9276 commit dfe0325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ vengines: QCVEngine
QCVEngine: Makefile
cd vengines/QuickCheckVEngine &&\
if cabal --help 2>&1 | grep v1-build > /dev/null; then \
(cabal v1-install --only-dependencies && cabal v1-configure && cabal v1-build); \
(cabal v1-install --only-dependencies && cabal v1-configure && cabal -j$$(( `nproc` < 64 ? `nproc` : 64 )) v1-build); \
else \
(cabal install --only-dependencies && cabal configure && cabal build); \
fi
Expand Down

0 comments on commit dfe0325

Please sign in to comment.