forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lua-Harness and tarantool testsuites uses a prove(1) for running tests. prove(1) allows to run tests in parallel with option "--jobs" [1]. In CMake it is not possible to get a number of parallel jobs in CMake passed by user with option "-j", but it allows to pass a number of parallel jobs with environment variable CMAKE_BUILD_PARALLEL_LEVEL [2] on configuration phase. We use a value set by that environment variable and set it to a number of CPU threads when it was not specified by user. Number of CPU threads detected using builtin CMake function [3]. NOTE: CMAKE_BUILD_PARALLEL_LEVEL has been added in a version 3.12. 1. https://perldoc.perl.org/prove 2. https://cmake.org/cmake/help/latest/envvar/CMAKE_BUILD_PARALLEL_LEVEL.html 3. https://cmake.org/cmake/help/latest/module/ProcessorCount.html
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters