Selaa lähdekoodia

Add SunOS case statement to num_cpu_cores

pull/1055/head
Kjetil Limkjær 8 vuotta sitten
vanhempi
commit
5149c53165
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. +4
    -1
      plugins/python-build/bin/python-build

+ 4
- 1
plugins/python-build/bin/python-build Näytä tiedosto

@ -155,8 +155,11 @@ num_cpu_cores() {
Darwin | *BSD )
num="$(sysctl -n hw.ncpu 2>/dev/null || true)"
;;
SunOS )
num="$(getconf NPROCESSORS_ONLN 2>/dev/null)"
;;
* )
num="$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
num="$({ getconf _NPROCESSORS_ONLN ||
grep -c ^processor /proc/cpuinfo; } 2>/dev/null)"
num="${num#0}"
;;

Ladataan…
Peruuta
Tallenna