[Openmp-commits] [PATCH] D138113: [openmp] [cmake] Fix detecting aarch64 in standalone MSVC builds

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 16 03:15:58 PST 2022


mstorsjo created this revision.
mstorsjo added reviewers: AndreyChurbanov, JonChesterfield, natgla, pulidocr, jdoerfert, Meinersbur.
Herald added subscribers: guansong, kristof.beyls, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138113

Files:
  openmp/runtime/cmake/LibompGetArchitecture.cmake


Index: openmp/runtime/cmake/LibompGetArchitecture.cmake
===================================================================
--- openmp/runtime/cmake/LibompGetArchitecture.cmake
+++ openmp/runtime/cmake/LibompGetArchitecture.cmake
@@ -35,7 +35,7 @@
       #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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138113.475753.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221116/69e34901/attachment.bin>


More information about the Openmp-commits mailing list