mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user