[Openmp-commits] [openmp] a429773 - [openmp] [cmake] Fix detecting aarch64 in standalone MSVC builds
Martin Storsjö via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 17 04:19:54 PST 2022
Author: Martin Storsjö
Date: 2022-11-17T14:18:36+02:00
New Revision: a429773b3ec6978e2cfd27d2ff6a6585b6e88198
URL: https://github.com/llvm/llvm-project/commit/a429773b3ec6978e2cfd27d2ff6a6585b6e88198
DIFF: https://github.com/llvm/llvm-project/commit/a429773b3ec6978e2cfd27d2ff6a6585b6e88198.diff
LOG: [openmp] [cmake] Fix detecting aarch64 in standalone MSVC builds
Differential Revision: https://reviews.llvm.org/D138113
Added:
Modified:
openmp/runtime/cmake/LibompGetArchitecture.cmake
Removed:
################################################################################
diff --git a/openmp/runtime/cmake/LibompGetArchitecture.cmake b/openmp/runtime/cmake/LibompGetArchitecture.cmake
index c164c04c6165d..c338493bad538 100644
--- a/openmp/runtime/cmake/LibompGetArchitecture.cmake
+++ b/openmp/runtime/cmake/LibompGetArchitecture.cmake
@@ -35,7 +35,7 @@ function(libomp_get_architecture return_arch)
#error ARCHITECTURE=arm
#elif defined(__arm__) || defined(_M_ARM) || defined(_ARM)
#error ARCHITECTURE=arm
- #elif defined(__aarch64__)
+ #elif defined(__aarch64__) || defined(_M_ARM64)
#error ARCHITECTURE=aarch64
#elif defined(__powerpc64__) && defined(__LITTLE_ENDIAN__)
#error ARCHITECTURE=ppc64le
More information about the Openmp-commits
mailing list