Skip to content

Commit cfdd937

Browse files
authored
[llvm] Android has sched_getaffinity() now (#124689)
1 parent 063db51 commit cfdd937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: llvm/lib/Support/Unix/Threading.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int computeHostNumPhysicalCores() {
387387
static int computeHostNumPhysicalCores() {
388388
return sysconf(_SC_NPROCESSORS_ONLN);
389389
}
390-
#elif defined(__linux__) && !defined(__ANDROID__)
390+
#elif defined(__linux__)
391391
static int computeHostNumPhysicalCores() {
392392
cpu_set_t Affinity;
393393
if (sched_getaffinity(0, sizeof(Affinity), &Affinity) == 0)

0 commit comments

Comments
 (0)