mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ABI-checker: include Swift symbols only when ABI checking is enabled
ABI checking logics are largely Swift-specific, so we should exclude symbols from the underlying Clang module. rdar://64373983
This commit is contained in:
@@ -2653,7 +2653,9 @@ static CheckerOptions getCheckOpts(int argc, char *argv[]) {
|
||||
Opts.AbortOnModuleLoadFailure = options::AbortOnModuleLoadFailure;
|
||||
Opts.LocationFilter = options::LocationFilter;
|
||||
Opts.PrintModule = options::PrintModule;
|
||||
Opts.SwiftOnly = options::SwiftOnly;
|
||||
// When ABI checking is enabled, we should only include Swift symbols because
|
||||
// the checking logics are language-specific.
|
||||
Opts.SwiftOnly = options::Abi || options::SwiftOnly;
|
||||
Opts.SkipOSCheck = options::DisableOSChecks;
|
||||
for (int i = 1; i < argc; ++i)
|
||||
Opts.ToolArgs.push_back(argv[i]);
|
||||
|
||||
Reference in New Issue
Block a user