[llvm] [TargetParser] Parse Amazon Linux triple and handle RuntimeLibcalls (PR #136114)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 21:15:34 PDT 2025
================
@@ -173,7 +173,7 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) {
setLibcallName(RTLIB::EXP10_F64, "__exp10");
}
- if (TT.isGNUEnvironment() || TT.isOSFuchsia() ||
+ if (TT.isGNUEnvironment() || TT.isOSFuchsia() || TT.isAmazonLinux() ||
----------------
MaskRay wrote:
Thanks for trying multiple solutions. #140070 looks cleaner and avoids adding isAmazonlinux to other places isGNUEnvironment is used. Will we treat aarch64-amazon-linux-gnu as the triple and prefer it elsewhere? Perhaps yes.
So we just need a way to recognize the aarch64-amazon-linux gcc installation.
https://github.com/llvm/llvm-project/pull/136114
More information about the llvm-commits
mailing list