[clang][ExtractAPI] Emit environment component of target triple in SGF (#103273)

rdar://133533830
This commit is contained in:
Daniel Grumberg
2024-08-15 16:23:31 +01:00
committed by GitHub
parent 11c2da8fb7
commit 57abd4e4ab
2 changed files with 24 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ Object serializePlatform(const Triple &T) {
Object Platform;
Platform["architecture"] = T.getArchName();
Platform["vendor"] = T.getVendorName();
if (!T.getEnvironmentName().empty())
Platform["environment"] = T.getEnvironmentName();
Platform["operatingSystem"] = serializeOperatingSystem(T);
return Platform;
}