D137836 changed what llvm::get_physical_cores returns when threads are
disabled, to bring it inline with the other parts of Threading. It now
returns the value for "unknown" when threading is disabled.
This commit updates the tests (which are failing on some platforms), to
also reflect this change.
Differential Revision: https://reviews.llvm.org/D139015
namespace {
static bool isThreadingSupportedArchAndOS() {
+#if LLVM_ENABLE_THREADS
Triple Host(Triple::normalize(sys::getProcessTriple()));
// Initially this is only testing detection of the number of
(Host.isX86() && Host.isOSLinux()) ||
(Host.isOSLinux() && !Host.isAndroid()) ||
(Host.isSystemZ() && Host.isOSzOS());
+#else
+ return false;
+#endif
}
TEST(Threading, PhysicalConcurrency) {