[clang] Enable aarch64-amazon-linux triple (PR #82232)
Sébastien Stormacq via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 19 02:27:43 PST 2024
https://github.com/sebsto created https://github.com/llvm/llvm-project/pull/82232
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
>From c6d774983c8e71074b17fe97fb7205a27b741354 Mon Sep 17 00:00:00 2001
From: Sebastien Stormacq <sebastien.stormacq at gmail.com>
Date: Mon, 19 Feb 2024 11:13:55 +0100
Subject: [PATCH] Enable aarch64-amazon-linux triple
---
clang/lib/Driver/ToolChains/Gnu.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"};
More information about the cfe-commits
mailing list