mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-18 19:02:46 +08:00
cmake/Tests: Default to half the cores
Saturating all cores easily leads to timeouts. The system might be doing something else, and it only leaves at most one core per-test. E.g. this will cause 90% of runs to fail on a raspberry pi 4. Note that we set CTEST_PARALLEL_LEVEL on our CI machines anyway, so this will not affect them.
This commit is contained in:
parent
23f218eb8e
commit
021b18335c
|
@ -8,7 +8,8 @@ if(NOT CTEST_PARALLEL_LEVEL)
|
|||
if(NOT CTEST_PARALLEL_LEVEL)
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(CORES)
|
||||
set(CTEST_PARALLEL_LEVEL ${CORES})
|
||||
math(EXPR halfcores "${CORES} / 2")
|
||||
set(CTEST_PARALLEL_LEVEL ${halfcores})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user