Lines Matching defs:SDK

1209       // specified SDK path.
1364 // Assume SDK has path: SOME_PATH/SDKs/PlatformXX.YY.sdk
1368 StringRef SDK = *IT;
1369 if (SDK.ends_with(".sdk"))
1370 return SDK.slice(0, SDK.size() - 4);
1590 // it never went into the SDK.
1601 /// If the macOS SDK version is the same or earlier than the system version,
1602 /// then the SDK version is returned. Otherwise the system version is returned.
1635 /// The OS was inferred from the SDK.
1819 /// the SDK path itself. Only works for values that were created by inferring
1822 assert(Kind == InferredFromSDK && "can infer SDK info only");
1826 assert(IsValid && "invalid SDK version");
1979 /// Returns the SDK name without the optional prefix that ends with a '.' or an
1988 /// Tries to infer the deployment target from the SDK specified by -isysroot
1998 StringRef SDK = Darwin::getSDKName(isysroot);
1999 if (!SDK.size())
2009 size_t StartVer = SDK.find_first_of("0123456789");
2010 size_t EndVer = SDK.find_last_of("0123456789");
2012 Version = std::string(SDK.slice(StartVer, EndVer + 1));
2018 [&](StringRef SDK) -> std::optional<DarwinPlatform> {
2019 if (SDK.starts_with("iPhoneOS") || SDK.starts_with("iPhoneSimulator"))
2022 /*IsSimulator=*/SDK.starts_with("iPhoneSimulator"));
2023 else if (SDK.starts_with("MacOSX"))
2026 else if (SDK.starts_with("WatchOS") || SDK.starts_with("WatchSimulator"))
2029 /*IsSimulator=*/SDK.starts_with("WatchSimulator"));
2030 else if (SDK.starts_with("AppleTVOS") ||
2031 SDK.starts_with("AppleTVSimulator"))
2034 /*IsSimulator=*/SDK.starts_with("AppleTVSimulator"));
2035 else if (SDK.starts_with("XR"))
2038 /*IsSimulator=*/SDK.contains("Simulator"));
2039 else if (SDK.starts_with("DriverKit"))
2043 if (auto Result = CreatePlatformFromSDKName(SDK))
2045 // The SDK can be an SDK variant with a name like `<prefix>.<platform>`.
2046 return CreatePlatformFromSDKName(dropSDKNamePrefix(SDK));
2231 // Read the SDKSettings.json file for more information, like the SDK version
2298 // Don't infer simulator from the arch when the SDK is also specified.
2310 /// If the target was successfully constructed from the SDK path, try to
2311 /// infer the SDK info if the SDK doesn't have it.
2413 StringRef SDK = getSDKName(A->getValue());
2414 if (SDK.size() > 0) {
2415 size_t StartVer = SDK.find_first_of("0123456789");
2416 StringRef SDKName = SDK.slice(0, StartVer);
2550 // 2. In a SDK (or a custom sysroot) in <sysroot>/usr/include/c++/v1
2934 // depend on the SDK version.
2941 // If there is no SDK info, assume this is building against a
2942 // pre-SDK version of macOS (i.e. before Mac OS X 10.4). Those
2959 // is iOS, but it builds with the macOS SDK, so it's the macOS SDK version
3053 // Earlier versions of the darwin SDK have the C standard library headers
3059 // stdint.h (darwin)). This is fixed in later versions of the darwin SDK,
3080 /// Pass the SDK version to the compiler when the SDK information is
3102 /// Pass the target variant SDK version to the compiler when the SDK
3317 // Both the target and SDK version support only up to 3 components.
3338 // Mac Catalyst programs must use the appropriate iOS SDK version
3339 // that corresponds to the macOS SDK version used for the compilation.
3363 // Use an SDK version that's matching the deployment target if the SDK
3364 // version is missing. This is preferred over an empty SDK version
3366 // contain a valid SDK version in order for the binary to work
3368 // a proxy for the SDK version because older SDKs don't guarantee
3369 // support for deployment targets newer than the SDK versions, so that
3370 // rules out using some predetermined older SDK version, which leaves