procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Build CPUInfo on Darwin

Open localhots opened this issue 1 year ago • 0 comments

cpuinfo.go is currently only built on Linux and it breaks Darwin builds for no apparent reason. I understand that there's no procfs on Darwin but it should still be possible to use macOS for development of projects that use this package.

This change allows it to be built on Darwin with a dummy parseCPUInfo implementation.

Please let me know if I need to change this solution in any way. Thanks!

localhots avatar Jan 06 '25 14:01 localhots