Rename .macosx to .macos

This commit is contained in:
Vignesh Rajagopalan
2020-10-12 14:29:43 +05:30
committed by Andrew Kelley
parent 53c63bdb73
commit 2ab0c7391a
26 changed files with 73 additions and 71 deletions

View File

@@ -817,7 +817,9 @@ const char *ZigLLVMGetVendorTypeName(ZigLLVM_VendorType vendor) {
}
const char *ZigLLVMGetOSTypeName(ZigLLVM_OSType os) {
return (const char*)Triple::getOSTypeName((Triple::OSType)os).bytes_begin();
const char* name = (const char*)Triple::getOSTypeName((Triple::OSType)os).bytes_begin();
if (strcmp(name, "macosx") == 0) return "macos";
return name;
}
const char *ZigLLVMGetEnvironmentTypeName(ZigLLVM_EnvironmentType env_type) {