Skip to content

Commit b361af4

Browse files
authored
Merge pull request #11447 from edymtt/edymtt/find-arm64-resource-dir-on-amazon-linux
Amazon Linux 2023: find the resource dir when using the default triple
2 parents 9a3c915 + 20cf541 commit b361af4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
23312331
// lists should shrink over time. Please don't add more elements to *Triples.
23322332
static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
23332333
static const char *const AArch64Triples[] = {
2334-
"aarch64-none-linux-gnu", "aarch64-redhat-linux", "aarch64-suse-linux"};
2334+
"aarch64-none-linux-gnu", "aarch64-redhat-linux", "aarch64-suse-linux",
2335+
"aarch64-amazon-linux"};
23352336
static const char *const AArch64beLibDirs[] = {"/lib"};
23362337
static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu"};
23372338

0 commit comments

Comments
 (0)