[GHC] #8594: sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X
GHC
ghc-devs at haskell.org
Thu Dec 5 07:29:19 UTC 2013
#8594: sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X
-----------------------------------+------------------------------------
Reporter: kseo | Owner: simonmar
Type: task | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 7.6.3
Resolution: | Keywords:
Operating System: MacOS X | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-----------------------------------+------------------------------------
Comment (by kseo):
I've attached a patch to use hw.logicalcpu in OS X. FreeBSD still uses
"hw.ncpu", so I split the guard. This patch does not change the behavior
because hw.ncpu also returns the logical cpu count.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8594#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list