Commit 7a4f8f87d4f38373b720128160ad3e6b795d0b79
Build with all available threads in pre-commit
Instead of hard-coding number of threads.
Author: xaizek
Author date (UTC): 2026-06-17 12:57
Committer name: xaizek
Committer date (UTC): 2026-06-17 12:57
Parent(s): a95aa6fd5c2ddee613d78fc7e602ca2f9c5818ef
Signing key: 99DC5E4DB05F6BE2
Tree: 403271be97f532bab01e5a3d7eed708573501b3b
| File scripts/pre-commit changed (mode: 100755) (index 200ed6b..b510081) |
| ... |
... |
if ! git diff --quiet HEAD; then |
| 95 |
95 |
# run build using staged changes only |
# run build using staged changes only |
| 96 |
96 |
# use release build as with its optimization level compiler is able to issue |
# use release build as with its optimization level compiler is able to issue |
| 97 |
97 |
# more warnings |
# more warnings |
| 98 |
|
nice ionice make --jobs 6 check release |
|
|
98 |
|
nice ionice make --jobs `$(nproc)` check release |
| 99 |
99 |
RESULT="$?" |
RESULT="$?" |
| 100 |
100 |
else |
else |
| 101 |
101 |
RESULT="0" |
RESULT="0" |