[llvm] eaf0aa1 - [unittest] Update HostTest::isSupportedArchAndOS
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 13 10:27:38 PDT 2022
Author: Fangrui Song
Date: 2022-08-13T10:27:34-07:00
New Revision: eaf0aa1f1fbd06fbd66417f2c9d50d3074969824
URL: https://github.com/llvm/llvm-project/commit/eaf0aa1f1fbd06fbd66417f2c9d50d3074969824
DIFF: https://github.com/llvm/llvm-project/commit/eaf0aa1f1fbd06fbd66417f2c9d50d3074969824.diff
LOG: [unittest] Update HostTest::isSupportedArchAndOS
Added:
Modified:
llvm/unittests/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/Host.cpp b/llvm/unittests/Support/Host.cpp
index 6351903ecc895..523e6e2195e41 100644
--- a/llvm/unittests/Support/Host.cpp
+++ b/llvm/unittests/Support/Host.cpp
@@ -40,8 +40,8 @@ class HostTest : public testing::Test {
// some systems.
return (Host.isOSWindows() && llvm_is_multithreaded()) ||
Host.isOSDarwin() || (Host.isX86() && Host.isOSLinux()) ||
- (Host.isPPC64() && Host.isOSLinux()) ||
- (Host.isSystemZ() && (Host.isOSLinux() || Host.isOSzOS()));
+ (Host.isOSLinux() && !Host.isAndroid()) ||
+ (Host.isSystemZ() && Host.isOSzOS());
}
HostTest() : Host(Triple::normalize(sys::getProcessTriple())) {}
More information about the llvm-commits
mailing list