Merge pull request #68912 from kubamracek/embedded-closures-heap

[embedded] Support closures with captures and promoting locals to refcounted heap objects
This commit is contained in:
Kuba (Brecka) Mracek
2023-10-03 07:00:46 -07:00
committed by GitHub
4 changed files with 59 additions and 0 deletions

View File

@@ -3123,6 +3123,8 @@ bool CompilerInvocation::parseArgs(
if (LangOpts.hasFeature(Feature::Embedded)) {
IRGenOpts.InternalizeAtLink = true;
IRGenOpts.DisableLegacyTypeInfo = true;
IRGenOpts.ReflectionMetadata = ReflectionMetadataMode::None;
IRGenOpts.EnableReflectionNames = false;
SILOpts.CMOMode = CrossModuleOptimizationMode::Everything;
SILOpts.EmbeddedSwift = true;
}