mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Package CMO: Skip deserialization error checks for same-module decls.
IterableDeclContext::checkDeserializeMemberErrorInPackage recursively checks if decls and their member decls are deserialized correctly into another module. This PR adds a check to make sure the inspected decls are from another module, and provides an opt-in flag to fail fast on deserialization failure if found. rdar://143830240
This commit is contained in:
@@ -1349,7 +1349,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
}
|
||||
|
||||
Opts.SkipDeserializationChecksForPackageCMO = Args.hasArg(OPT_ExperimentalSkipDeserializationChecksForPackageCMO);
|
||||
Opts.AbortOnDeserializationFailForPackageCMO = Args.hasArg(OPT_ExperimentalPackageCMOAbortOnDeserializationFail);
|
||||
Opts.AllowNonResilientAccess =
|
||||
Args.hasArg(OPT_experimental_allow_non_resilient_access) ||
|
||||
Args.hasArg(OPT_allow_non_resilient_access) ||
|
||||
|
||||
Reference in New Issue
Block a user