Преглед на файлове

Fix for Python 3 incompatibility with os.cpu_count

dev
Jacob Alexander преди 7 години
родител
ревизия
dabeb2270e
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      common/stage.py

+ 2
- 1
common/stage.py Целия файл

@@ -23,6 +23,7 @@ KLL Compiler Stage Definitions
from multiprocessing.dummy import Pool as ThreadPool

import io
import multiprocessing
import os
import re
import sys
@@ -222,7 +223,7 @@ class CompilerConfigurationStage( Stage ):
super().__init__( control )

self.color = "auto"
self.jobs = os.cpu_count()
self.jobs = multiprocessing.cpu_count()
self.pool = None

# Build list of emitters