[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171970)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 23 09:22:12 PST 2025


================
@@ -2609,9 +2613,15 @@ void Darwin::AddDeploymentTarget(DerivedArgList &Args) const {
 // For certain platforms/environments almost all resources (e.g., headers) are
 // located in sub-directories, e.g., for DriverKit they live in
 // <SYSROOT>/System/DriverKit/usr/include (instead of <SYSROOT>/usr/include).
-static void AppendPlatformPrefix(SmallString<128> &Path,
-                                 const llvm::Triple &T) {
-  if (T.isDriverKit()) {
+void DarwinClang::AppendPlatformPrefix(SmallString<128> &Path,
----------------
cyndyishida wrote:

nit: it seems unnecessary to have both "PlatformPrefix" and "SystemPrefix" as terminology when, AFAICT are the same thing.

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


More information about the cfe-commits mailing list