Skip to content

Commit 20cf541

Browse files
committed
Amazon Linux 2023: find the resource dir when using the default triple
...instead of the vendor one. This matches the behaviour of clang and clang18 that ships as part of the distribution. Resolves swiftlang/swift#84363
1 parent de3eec1 commit 20cf541

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)