Skip to content

Commit c16932b

Browse files
yfeldblummeta-codesync[bot]
authored andcommitted
avoid folly::hardware_concurrency optimization on android
Differential Revision: D83869948 fbshipit-source-id: d002c16f50fa27099df7e7f1a27dd6d66bb2405c
1 parent 9ec3de9 commit c16932b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third-party/folly/src/folly/system/HardwareConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ cpu_set_state::~cpu_set_state() {
6666
#endif
6767

6868
unsigned int hardware_concurrency() noexcept {
69-
#if defined(__linux__)
69+
#if defined(__linux__) && !defined(__ANDROID__)
7070
cpu_set_t stackset;
7171
return to_narrow(cpu_set_state::ask(&stackset).cpu_count());
7272
#endif

0 commit comments

Comments
 (0)