[clang] [clang][modules] Determine if the SDK supports builtin modules independent of the target (PR #134005)
Volodymyr Sapsai via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 2 09:49:36 PDT 2025
================
@@ -62,6 +63,28 @@ DarwinSDKInfo::RelatedTargetVersionMapping::parseJSON(
Min, Max, MinValue, MaximumDeploymentTarget, std::move(Mapping));
}
+static llvm::Triple::OSType parseOS(const llvm::json::Object &Obj) {
+ // The CanonicalName is the Xcode platform, a version, and an optional suffix,
+ // e.g. macosx16.0.
----------------
vsapsai wrote:
The example doesn't have a suffix, as far as I can tell. Up to you if you want to make it more representative.
https://github.com/llvm/llvm-project/pull/134005
More information about the cfe-commits
mailing list