use cpu_count when available
Some checks failed
ci-scripts build/test / cross linux-aarch64 / / default (push) Successful in 2m6s
ci-scripts build/test / cross RTEMS-pc386-qemu@4.10 / / default (push) Successful in 2m46s
ci-scripts build/test / cross RTEMS-pc386-qemu@4.9 / / default (push) Successful in 2m42s
ci-scripts build/test / cross linux-arm@arm-linux-gnueabi / / default (push) Successful in 2m17s
ci-scripts build/test / cross linux-arm@arm-linux-gnueabihf / / default (push) Successful in 2m42s
ci-scripts build/test / cross linux-ppc / / default (push) Successful in 3m11s
ci-scripts build/test / cross linux-ppc64 / / default (push) Successful in 2m8s
ci-scripts build/test / cross RTEMS-pc686-qemu@5 / / default (push) Successful in 4m26s
ci-scripts build/test / cross win32-x86-mingw / / default (push) Successful in 2m10s
ci-scripts build/test / cross windows-x64-mingw / / default (push) Successful in 2m19s
ci-scripts build/test / Unit tests on macos-14 (push) Has been cancelled
ci-scripts build/test / Unit tests on macos-15 (push) Has been cancelled
ci-scripts build/test / Unit tests on ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / Unit tests on ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / clang / debug / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / clang / default / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / clang / default / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / clang / static / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / clang / static / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / clang / static-debug / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / clang / static-debug / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / gcc / debug / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / gcc / static-debug / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / gcc / static-debug / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / clang / debug / macos-14 (push) Has been cancelled
ci-scripts build/test / clang / debug / macos-15 (push) Has been cancelled
ci-scripts build/test / clang / default / macos-14 (push) Has been cancelled
ci-scripts build/test / clang / default / macos-15 (push) Has been cancelled
ci-scripts build/test / gcc / debug / windows-2022 (push) Has been cancelled
ci-scripts build/test / gcc / debug / windows-2025 (push) Has been cancelled
ci-scripts build/test / gcc / default / windows-2022 (push) Has been cancelled
ci-scripts build/test / gcc / default / windows-2025 (push) Has been cancelled
ci-scripts build/test / vs2022 / static-debug / windows-2022 (push) Has been cancelled
ci-scripts build/test / vs2022 / static-debug / windows-2025 (push) Has been cancelled
ci-scripts build/test / Unit tests on windows-2022 (push) Has been cancelled
ci-scripts build/test / Unit tests on windows-2025 (push) Has been cancelled
ci-scripts build/test / clang / debug / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / gcc / debug / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / gcc / default / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / gcc / default / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / gcc / static / ubuntu-22.04 (push) Has been cancelled
ci-scripts build/test / gcc / static / ubuntu-24.04 (push) Has been cancelled
ci-scripts build/test / gcc / static / windows-2022 (push) Has been cancelled
ci-scripts build/test / gcc / static / windows-2025 (push) Has been cancelled
ci-scripts build/test / gcc / static-debug / windows-2022 (push) Has been cancelled
ci-scripts build/test / gcc / static-debug / windows-2025 (push) Has been cancelled
ci-scripts build/test / vs2022 / debug / windows-2022 (push) Has been cancelled
ci-scripts build/test / vs2022 / debug / windows-2025 (push) Has been cancelled
ci-scripts build/test / vs2022 / default / windows-2022 (push) Has been cancelled
ci-scripts build/test / vs2022 / default / windows-2025 (push) Has been cancelled
ci-scripts build/test / vs2022 / static / windows-2022 (push) Has been cancelled
ci-scripts build/test / vs2022 / static / windows-2025 (push) Has been cancelled

This commit is contained in:
Michael Davidsaver
2025-11-17 11:04:12 -08:00
committed by Ralph Lange
parent a096fe1b76
commit 261f218e09

8
cue.py
View File

@@ -15,6 +15,12 @@ import subprocess as sp
import sysconfig import sysconfig
import shutil import shutil
try:
from os import cpu_count
except ImportError:
def cpu_count():
pass # undetermined
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# Keep track of all files we write/append for later logging # Keep track of all files we write/append for later logging
@@ -151,7 +157,7 @@ def detect_context():
if 'TEST' in os.environ and os.environ['TEST'].lower() == 'no': if 'TEST' in os.environ and os.environ['TEST'].lower() == 'no':
ci['test'] = False ci['test'] = False
ci['parallel_make'] = 2 ci['parallel_make'] = cpu_count() or 2
if 'PARALLEL_MAKE' in os.environ: if 'PARALLEL_MAKE' in os.environ:
ci['parallel_make'] = int(os.environ['PARALLEL_MAKE']) ci['parallel_make'] = int(os.environ['PARALLEL_MAKE'])