[PATCH] D25800: Add computeHostNumPhysicalCores() implementation for Darwin

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 15:13:11 PDT 2016


mehdi_amini added inline comments.


================
Comment at: lib/Support/Host.cpp:1237
 }
+#elif defined(__APPLE__)
+#include <sys/param.h>
----------------
tejohnson wrote:
> Is this true only for x86?
The syscall should work on every Apple Darwin platform, but I haven't a build of LLVM that runs on a device to validate it right now, I can `ifdef` on X86 as well for now.


https://reviews.llvm.org/D25800





More information about the llvm-commits mailing list