mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[llvm][TextAPI/MachO] Support writing single macCatalyst platform
TAPI currently lacks a way to emit the macCatalyst platform. For TBD_V3 is does support zippered frameworks given that both macOS and macCatalyst are part of the PlatformSet. Differential revision: https://reviews.llvm.org/D73325
This commit is contained in:
parent
5a867ce09b
commit
6df1071106
@ -74,6 +74,9 @@ void ScalarTraits<PlatformSet>::output(const PlatformSet &Values, void *IO,
|
|||||||
case PlatformKind::bridgeOS:
|
case PlatformKind::bridgeOS:
|
||||||
OS << "bridgeos";
|
OS << "bridgeos";
|
||||||
break;
|
break;
|
||||||
|
case PlatformKind::macCatalyst:
|
||||||
|
OS << "iosmac";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,15 +329,11 @@ TEST(TBDv3, Platform_macCatalyst) {
|
|||||||
EXPECT_EQ(FileType::TBD_V3, File->getFileType());
|
EXPECT_EQ(FileType::TBD_V3, File->getFileType());
|
||||||
EXPECT_EQ(Platform, *File->getPlatforms().begin());
|
EXPECT_EQ(Platform, *File->getPlatforms().begin());
|
||||||
|
|
||||||
// It's not currently possible to emit the iomac platform. Enable this once
|
|
||||||
// that's fixed.
|
|
||||||
#if 0
|
|
||||||
SmallString<4096> Buffer;
|
SmallString<4096> Buffer;
|
||||||
raw_svector_ostream OS(Buffer);
|
raw_svector_ostream OS(Buffer);
|
||||||
auto WriteResult = TextAPIWriter::writeToStream(OS, *File);
|
auto WriteResult = TextAPIWriter::writeToStream(OS, *File);
|
||||||
EXPECT_TRUE(!WriteResult);
|
EXPECT_TRUE(!WriteResult);
|
||||||
EXPECT_EQ(stripWhitespace(tbd_v3_platform_iosmac), stripWhitespace(Buffer.c_str()));
|
EXPECT_EQ(stripWhitespace(tbd_v3_platform_iosmac), stripWhitespace(Buffer.c_str()));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(TBDv3, Platform_zippered) {
|
TEST(TBDv3, Platform_zippered) {
|
||||||
|
Loading…
Reference in New Issue
Block a user