Skip to content

Commit 1c1f43f

Browse files
authored
Merge pull request #81177 from swiftlang/egorzhdan/coregraphics-workaround
[cxx-interop] Remove a workaround for CoreGraphics module interface
2 parents 79e0b6a + 571bd8e commit 1c1f43f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,19 +2132,6 @@ InterfaceSubContextDelegateImpl::runInSubCompilerInstance(StringRef moduleName,
21322132
subInvocation.setSysRoot(sysroot.value());
21332133
}
21342134

2135-
// FIXME: Hack for CoreGraphics.swiftmodule, which cannot be rebuilt because
2136-
// of a CF_OPTIONS bug (rdar://142762174).
2137-
if (moduleName == "CoreGraphics") {
2138-
subInvocation.getLangOptions().EnableCXXInterop = false;
2139-
subInvocation.getLangOptions().cxxInteropCompatVersion = {};
2140-
BuildArgs.erase(llvm::remove_if(BuildArgs,
2141-
[](StringRef arg) -> bool {
2142-
return arg.starts_with(
2143-
"-cxx-interoperability-mode=");
2144-
}),
2145-
BuildArgs.end());
2146-
}
2147-
21482135
// Calculate output path of the module.
21492136
SwiftInterfaceModuleOutputPathResolution::ResultTy resolvedOutputPath;
21502137
getCachedOutputPath(resolvedOutputPath, moduleName, interfacePath, sdkPath);

0 commit comments

Comments
 (0)