[GHC] #8594: sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X

GHC ghc-devs at haskell.org
Tue Aug 19 11:45:35 UTC 2014


#8594: sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X
-------------------------------------+-------------------------------------
              Reporter:  kseo        |            Owner:  simonmar
                  Type:  task        |           Status:  infoneeded
              Priority:  normal      |        Milestone:  7.10.1
             Component:  Runtime     |          Version:  7.6.3
  System                             |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:  MacOS X     |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by thoughtpolice):

 * status:  patch => infoneeded
 * milestone:   => 7.10.1


Comment:

 I think this patch is OK, but what minimum version is `hw.logicalcpu`
 supported in? Perhaps instead it should simply try both: fall back to
 `hw.ncpu` if `hw.logicalcpu` fails. Could you make this change @kseo?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8594#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list