Skip to content

Commit 51cec86

Browse files
committed
[APIDigester] Don't check whether the stdlib was built for a different SDK
The API digester forces loading the stdlib which may pick up an stdlib from a different SDK than the one being tested. Disable the check enforcing loading only swiftmodules built for the same SDK.
1 parent bccea96 commit 51cec86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/APIDigester/ModuleAnalyzerNodes.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,9 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
22332233

22342234
auto &Ctx = CI.getASTContext();
22352235

2236+
// Don't check if the stdlib was build with the same SDK as what is loaded
2237+
// here as some tests rely on using a different stdlib.
2238+
Ctx.SearchPathOpts.EnableSameSDKCheck = false;
22362239

22372240
// Load standard library so that Clang importer can use it.
22382241
auto *Stdlib = Ctx.getStdlibModule(/*loadIfAbsent=*/true);

0 commit comments

Comments
 (0)