Skip to content

Commit a63f071

Browse files
committed
[Serialization] Remove 'EnableSameSDKCheck' it's not needed with the soft-reject
1 parent c1a7aee commit a63f071

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/swift/AST/SearchPathOptions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,6 @@ class SearchPathOptions {
327327
/// would for a non-system header.
328328
bool DisableModulesValidateSystemDependencies = false;
329329

330-
/// Enforce loading only serialized modules built with the same SDK
331-
/// as the context loading it.
332-
bool EnableSameSDKCheck = true;
333-
334330
/// A set of compiled modules that may be ready to use.
335331
std::vector<std::string> CandidateCompiledModules;
336332

lib/APIDigester/ModuleAnalyzerNodes.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,10 +2419,6 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
24192419

24202420
auto &Ctx = CI.getASTContext();
24212421

2422-
// Don't check if the stdlib was build with the same SDK as what is loaded
2423-
// here as some tests rely on using a different stdlib.
2424-
Ctx.SearchPathOpts.EnableSameSDKCheck = false;
2425-
24262422
// Load standard library so that Clang importer can use it.
24272423
auto *Stdlib = Ctx.getStdlibModule(/*loadIfAbsent=*/true);
24282424
if (!Stdlib) {

0 commit comments

Comments
 (0)