Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cue.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import sysconfig
import shutil

try:
from os import cpu_count
except ImportError:
def cpu_count():
pass # undetermined

logger = logging.getLogger(__name__)

# Keep track of all files we write/append for later logging
Expand Down Expand Up @@ -151,7 +157,7 @@ def detect_context():
if 'TEST' in os.environ and os.environ['TEST'].lower() == 'no':
ci['test'] = False

ci['parallel_make'] = 2
ci['parallel_make'] = cpu_count() or 2
if 'PARALLEL_MAKE' in os.environ:
ci['parallel_make'] = int(os.environ['PARALLEL_MAKE'])

Expand Down
Loading