[clang] Enable aarch64-amazon-linux triple (PR #82232)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 19 02:28:25 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Sébastien Stormacq (sebsto)
<details>
<summary>Changes</summary>
Add aarch64-amazon-linux triplet to allow compilation for Amazon Linux 2023 on Graviton CPU
This should address https://github.com/apple/llvm-project/issues/8227
Also submitted to Apple's repo https://github.com/apple/llvm-project/pull/8228
---
Full diff: https://github.com/llvm/llvm-project/pull/82232.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+1-1)
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index a2526a2b903964..3aa870d4c4236d 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2456,7 +2456,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
static const char *const AArch64Triples[] = {
"aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux",
- "aarch64-suse-linux"};
+ "aarch64-suse-linux", "aarch64-amazon-linux"};
static const char *const AArch64beLibDirs[] = {"/lib"};
static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu",
"aarch64_be-linux-gnu"};
``````````
</details>
https://github.com/llvm/llvm-project/pull/82232
More information about the cfe-commits
mailing list