[clang] [clang][driver][darwin] Prefer DarwinSDKInfo for platform identification and compatibility over the -isysroot path (PR #176541)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 07:21:36 PST 2026


================
@@ -1382,26 +1382,61 @@ std::string Darwin::getCompilerRT(const ArgList &Args, StringRef Component,
   return std::string(FullPath);
 }
 
-StringRef Darwin::getPlatformFamily() const {
+static StringRef getPlatformFamily(Darwin::DarwinPlatformKind TargetPlatform) {
----------------
cyndyishida wrote:

Can you write this comment at the top of this function? And/or actually change the name of the function as e.g. `getPrefixPlatformForSDK`

https://github.com/llvm/llvm-project/pull/176541


More information about the cfe-commits mailing list