@@ -172,6 +172,7 @@ InterfaceFile::merge(const InterfaceFile *O) const {
172172
173173 IF->setTwoLevelNamespace (isTwoLevelNamespace ());
174174 IF->setApplicationExtensionSafe (isApplicationExtensionSafe ());
175+ IF->setOSLibNotForSharedCache (isOSLibNotForSharedCache ());
175176
176177 for (const auto &It : umbrellas ()) {
177178 if (!It.second .empty ())
@@ -238,6 +239,8 @@ InterfaceFile::remove(Architecture Arch) const {
238239 return make_error<TextAPIError>(TextAPIErrorCode::NoSuchArchitecture);
239240 }
240241
242+ // FIXME: Figure out how to keep these attributes in sync when new ones are
243+ // added.
241244 std::unique_ptr<InterfaceFile> IF (new InterfaceFile ());
242245 IF->setFileType (getFileType ());
243246 IF->setPath (getPath ());
@@ -248,6 +251,7 @@ InterfaceFile::remove(Architecture Arch) const {
248251 IF->setSwiftABIVersion (getSwiftABIVersion ());
249252 IF->setTwoLevelNamespace (isTwoLevelNamespace ());
250253 IF->setApplicationExtensionSafe (isApplicationExtensionSafe ());
254+ IF->setOSLibNotForSharedCache (isOSLibNotForSharedCache ());
251255 for (const auto &It : umbrellas ())
252256 if (It.first .Arch != Arch)
253257 IF->addParentUmbrella (It.first , It.second );
@@ -316,6 +320,7 @@ InterfaceFile::extract(Architecture Arch) const {
316320 IF->setSwiftABIVersion (getSwiftABIVersion ());
317321 IF->setTwoLevelNamespace (isTwoLevelNamespace ());
318322 IF->setApplicationExtensionSafe (isApplicationExtensionSafe ());
323+ IF->setOSLibNotForSharedCache (isOSLibNotForSharedCache ());
319324 for (const auto &It : umbrellas ())
320325 if (It.first .Arch == Arch)
321326 IF->addParentUmbrella (It.first , It.second );
0 commit comments