mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-api-digester: teach the tool to directly compare two module interfaces
We used to use a Json format to capture the ABI/API detail of Swift modules to walk-around module compatibility issues across different compiler versions. Since Swift module now is in stable format, we can compare two swiftinterface files directly without dumping the content into Json format.
This commit is contained in:
@@ -1972,7 +1972,7 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
|
||||
CheckerOptions Opts) {
|
||||
CompilerInvocation Invocation(InitInvok);
|
||||
|
||||
CompilerInstance &CI = SDKCtx.getCompilerInstance();
|
||||
CompilerInstance &CI = SDKCtx.newCompilerInstance();
|
||||
// Display diagnostics to stderr.
|
||||
PrintingDiagnosticConsumer PrintDiags;
|
||||
CI.addDiagnosticConsumer(&PrintDiags);
|
||||
|
||||
Reference in New Issue
Block a user