[PATCH] D119331: [gn build] Add host_cpu=arm64 & current_os=linux => aarch64-unknown-linux-gnu

Peter Waller via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 06:18:57 PST 2022


peterwaller-arm created this revision.
peterwaller-arm added reviewers: aeubanks, thakis.
Herald added a subscriber: kristof.beyls.
peterwaller-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

I've been using this triple in development for a while without issues,
it's passing check-llvm and check-clang.

(The above is the commit message, but the build is currently broken since
D114639 <https://reviews.llvm.org/D114639>, I intend to submit this once it's passing again and it's accepted in
review)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119331

Files:
  llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
  llvm/utils/gn/secondary/llvm/triples.gni


Index: llvm/utils/gn/secondary/llvm/triples.gni
===================================================================
--- llvm/utils/gn/secondary/llvm/triples.gni
+++ llvm/utils/gn/secondary/llvm/triples.gni
@@ -23,6 +23,8 @@
     llvm_current_triple = "aarch64-linux-android29"
   } else if (current_os == "ios" || current_os == "mac") {
     llvm_current_triple = "arm64-apple-darwin"
+  } else if (current_os == "linux") {
+    llvm_current_triple = "aarch64-unknown-linux-gnu"
   }
 } else if (current_cpu == "ppc64") {
   if (current_os == "linux") {
Index: llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
+++ llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
@@ -76,6 +76,8 @@
 
   if (host_cpu == "x64") {
     values += [ "HOST_ARCH=x86_64" ]
+  } else if (host_cpu == "arm64") {
+    values += [ "HOST_ARCH=aarch64" ]
   } else {
     assert(false, "unimplemented host_cpu " + host_cpu)
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119331.407136.patch
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/83953433/attachment.bin>


More information about the llvm-commits mailing list