From: Martin Storsjö Date: Wed, 16 Nov 2022 09:32:31 +0000 (+0200) Subject: [openmp] [cmake] Fix detecting aarch64 in standalone MSVC builds X-Git-Tag: upstream/17.0.6~27361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a429773b3ec6978e2cfd27d2ff6a6585b6e88198;p=platform%2Fupstream%2Fllvm.git [openmp] [cmake] Fix detecting aarch64 in standalone MSVC builds Differential Revision: https://reviews.llvm.org/D138113 --- diff --git a/openmp/runtime/cmake/LibompGetArchitecture.cmake b/openmp/runtime/cmake/LibompGetArchitecture.cmake index c164c04..c338493 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