Skip to content

Commit a282c3b

Browse files
committed
[llvm] Android has sched_getaffinity() now
1 parent 0bbfd96 commit a282c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Threading.inc

Lines changed: 1 addition & 1 deletion
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)