================ @@ -766,9 +766,19 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { return {}; }; - if (auto Path = getPathForTriple(getTriple())) + llvm::Triple Triple = getTriple(); + + // Try triple as is. + if (auto Path = getPathForTriple(Triple)) return *Path; + // Match transformations in CompilerRTUtils.cmake:get_compiler_rt_target. ---------------- rorth wrote:
It's not, some BSDs prefer the `amd64` form, too. Besides, `get_compiler_rt_target` does it unconditionally, so `clang` should match. https://github.com/llvm/llvm-project/pull/100091 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits