[clang][ExtractAPI] Emit environment component of target triple in SGF (#103273)
rdar://133533830
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user