Lines Matching defs:SDK
1260 // specified SDK path.
1415 // Assume SDK has path: SOME_PATH/SDKs/PlatformXX.YY.sdk
1419 StringRef SDK = *IT;
1420 if (SDK.ends_with(".sdk"))
1421 return SDK.slice(0, SDK.size() - 4);
1650 // it never went into the SDK.
1661 /// If the macOS SDK version is the same or earlier than the system version,
1662 /// then the SDK version is returned. Otherwise the system version is returned.
1695 /// The OS was inferred from the SDK.
1879 /// the SDK path itself. Only works for values that were created by inferring
1882 assert(Kind == InferredFromSDK && "can infer SDK info only");
1886 assert(IsValid && "invalid SDK version");
2039 /// Returns the SDK name without the optional prefix that ends with a '.' or an
2048 /// Tries to infer the deployment target from the SDK specified by -isysroot
2058 StringRef SDK = Darwin::getSDKName(isysroot);
2059 if (!SDK.size())
2069 size_t StartVer = SDK.find_first_of("0123456789");
2070 size_t EndVer = SDK.find_last_of("0123456789");
2072 Version = std::string(SDK.slice(StartVer, EndVer + 1));
2078 [&](StringRef SDK) -> std::optional<DarwinPlatform> {
2079 if (SDK.starts_with("iPhoneOS") || SDK.starts_with("iPhoneSimulator"))
2082 /*IsSimulator=*/SDK.starts_with("iPhoneSimulator"));
2083 else if (SDK.starts_with("MacOSX"))
2086 else if (SDK.starts_with("WatchOS") || SDK.starts_with("WatchSimulator"))
2089 /*IsSimulator=*/SDK.starts_with("WatchSimulator"));
2090 else if (SDK.starts_with("AppleTVOS") ||
2091 SDK.starts_with("AppleTVSimulator"))
2094 /*IsSimulator=*/SDK.starts_with("AppleTVSimulator"));
2095 else if (SDK.starts_with("XR"))
2098 /*IsSimulator=*/SDK.contains("Simulator"));
2099 else if (SDK.starts_with("DriverKit"))
2103 if (auto Result = CreatePlatformFromSDKName(SDK))
2105 // The SDK can be an SDK variant with a name like `<prefix>.<platform>`.
2106 return CreatePlatformFromSDKName(dropSDKNamePrefix(SDK));
2292 // Read the SDKSettings.json file for more information, like the SDK version
2359 // Don't infer simulator from the arch when the SDK is also specified.
2371 /// If the target was successfully constructed from the SDK path, try to
2372 /// infer the SDK info if the SDK doesn't have it.
2474 StringRef SDK = getSDKName(A->getValue());
2475 if (SDK.size() > 0) {
2476 size_t StartVer = SDK.find_first_of("0123456789");
2477 StringRef SDKName = SDK.slice(0, StartVer);
2612 // 2. In a SDK (or a custom sysroot) in <sysroot>/usr/include/c++/v1
3001 // depend on the SDK version.
3008 // If there is no SDK info, assume this is building against a
3009 // pre-SDK version of macOS (i.e. before Mac OS X 10.4). Those
3026 // is iOS, but it builds with the macOS SDK, so it's the macOS SDK version
3120 // Earlier versions of the darwin SDK have the C standard library headers
3126 // stdint.h (darwin)). This is fixed in later versions of the darwin SDK,
3176 /// Pass the SDK version to the compiler when the SDK information is
3198 /// Pass the target variant SDK version to the compiler when the SDK
3413 // Both the target and SDK version support only up to 3 components.
3434 // Mac Catalyst programs must use the appropriate iOS SDK version
3435 // that corresponds to the macOS SDK version used for the compilation.
3459 // Use an SDK version that's matching the deployment target if the SDK
3460 // version is missing. This is preferred over an empty SDK version
3462 // contain a valid SDK version in order for the binary to work
3464 // a proxy for the SDK version because older SDKs don't guarantee
3465 // support for deployment targets newer than the SDK versions, so that
3466 // rules out using some predetermined older SDK version, which leaves