[PATCH] D44087: [msvc] Allow MSVC toolchain driver to find the aarch64 / arm64 cross-compiler.

Chris January via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 04:27:58 PST 2018


arm-chrjan01 created this revision.
arm-chrjan01 added reviewers: zturner, rnk.
Herald added subscribers: cfe-commits, kristof.beyls, rengolin.
arm-chrjan01 added a comment.

I don't have commit access. Please commit after approval.


Starting with the Fall Creators Update, Windows 10 Desktop can run on machines that are powered by aarch64 processors.
Microsoft call the aarch64 architecture "arm64". This patch maps ArchType::aarch64 to "arm64" to allow the MSVC toolchain driver to find the aarch64 / arm64 cross-compiler.


Repository:
  rC Clang

https://reviews.llvm.org/D44087

Files:
  lib/Driver/ToolChains/MSVC.cpp


Index: lib/Driver/ToolChains/MSVC.cpp
===================================================================
--- lib/Driver/ToolChains/MSVC.cpp
+++ lib/Driver/ToolChains/MSVC.cpp
@@ -752,6 +752,8 @@
     return "x64";
   case ArchType::arm:
     return "arm";
+  case ArchType::aarch64:
+    return "arm64";
   default:
     return "";
   }
@@ -769,6 +771,8 @@
     return "amd64";
   case ArchType::arm:
     return "arm";
+  case ArchType::aarch64:
+    return "arm64";
   default:
     return "";
   }
@@ -784,6 +788,8 @@
     return "amd64";
   case ArchType::arm:
     return "arm";
+  case ArchType::aarch64:
+    return "arm64";
   default:
     return "";
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44087.136971.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180305/0c982318/attachment-0001.bin>


More information about the cfe-commits mailing list