[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
Mon Feb 14 02:55:20 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7f41643ef06d: [gn build] Add host_cpu=arm64 & current_os=linux => aarch64-unknown-linux-gnu (authored by peterwaller-arm).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119331/new/

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.408365.patch
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220214/79c2c850/attachment.bin>


More information about the llvm-commits mailing list