[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)
Daniel Chen via cfe-commits
cfe-commits at lists.llvm.org
Mon May 26 09:09:37 PDT 2025
================
@@ -933,11 +933,16 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const {
if (auto Path = getPathForTriple(T))
return *Path;
- if (T.isOSAIX() && T.getEnvironment() == Triple::UnknownEnvironment) {
- // Strip unknown environment from the triple.
- const llvm::Triple AIXTriple(
- llvm::Triple(T.getArchName(), T.getVendorName(),
- llvm::Triple::getOSTypeName(T.getOS())));
+ if (T.isOSAIX()) {
+ llvm::Triple AIXTriple;
+ if (T.getEnvironment() == Triple::UnknownEnvironment) {
+ // Strip unknown environment from the triple.
----------------
DanielCChen wrote:
Sorry Jake. This is not what I meant. I should have made it clearer.
I meant to change the original comment on line 939 to be Strip unknown environment and the OSVersion from the triple. and keep the comment at line 943 as is.
https://github.com/llvm/llvm-project/pull/141439
More information about the cfe-commits
mailing list