Skip to content
  • Rolf Eike Beer's avatar
    SystemInformation: use /proc/cpuinfo only when present · 640210e5
    Rolf Eike Beer authored
    Try to open /proc/cpuinfo only on platforms where it's presence is
    expected, namely Linux and Cygwin.
    
    Otherwise try sysconf(_SC_NPROCESSORS_ONLN) as last resort to count
    processors. Also account for the slightly different name on IRIX.
    
    Change-Id: I89eb5e198a6b3a33b581b70d2213096cbac8ca7c
    640210e5