Skip to content

Commit

Permalink
[gn build] Add host_cpu=arm64 & current_os=linux => aarch64-unknown-l…
Browse files Browse the repository at this point in the history
…inux-gnu

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, I intend to submit this once it's passing again and it's accepted in
review)

Differential Revision: https://reviews.llvm.org/D119331
  • Loading branch information
peterwaller-arm committed Feb 14, 2022
1 parent 7c83f8c commit 7f41643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ write_cmake_config("lit_common_configured") {

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)
}
Expand Down
2 changes: 2 additions & 0 deletions llvm/utils/gn/secondary/llvm/triples.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if (current_cpu == "x86") {
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") {
Expand Down

0 comments on commit 7f41643

Please sign in to comment.