[llvm] 483df57 - [Support] Turn on SupportTest for Apple Silicon
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 14 15:25:05 PDT 2021
Author: Steven Wu
Date: 2021-07-14T15:24:56-07:00
New Revision: 483df573135f2287bfd1a6d5c4d7196036f13cbd
URL: https://github.com/llvm/llvm-project/commit/483df573135f2287bfd1a6d5c4d7196036f13cbd
DIFF: https://github.com/llvm/llvm-project/commit/483df573135f2287bfd1a6d5c4d7196036f13cbd.diff
LOG: [Support] Turn on SupportTest for Apple Silicon
Follow up for D106012, turn on unittest for Host on Apple Silicon.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D106020
Added:
Modified:
llvm/unittests/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/Host.cpp b/llvm/unittests/Support/Host.cpp
index fd025d670b4c1..a7d39bee8b30b 100644
--- a/llvm/unittests/Support/Host.cpp
+++ b/llvm/unittests/Support/Host.cpp
@@ -39,7 +39,7 @@ class HostTest : public testing::Test {
// physical cores, which is currently only supported/tested on
// some systems.
return (Host.isOSWindows() && llvm_is_multithreaded()) ||
- (Host.isX86() && (Host.isOSDarwin() || Host.isOSLinux())) ||
+ Host.isOSDarwin() || (Host.isX86() && Host.isOSLinux()) ||
(Host.isPPC64() && Host.isOSLinux()) ||
(Host.isSystemZ() && (Host.isOSLinux() || Host.isOSzOS()));
}
More information about the llvm-commits
mailing list