mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Remove references to per-triple PCM variant compilation
This commit is contained in:
@@ -330,13 +330,6 @@ ModuleDependencyScanner::getMainModuleDependencyInfo(ModuleDecl *mainModule) {
|
||||
.asAPINotesVersionString())
|
||||
.str();
|
||||
|
||||
// Compute the dependencies of the main module.
|
||||
std::vector<StringRef> ExtraPCMArgs = {"-Xcc", apinotesVer};
|
||||
if (!ScanASTContext.LangOpts.ClangTarget.has_value())
|
||||
ExtraPCMArgs.insert(
|
||||
ExtraPCMArgs.begin(),
|
||||
{"-Xcc", "-target", "-Xcc", ScanASTContext.LangOpts.Target.str()});
|
||||
|
||||
auto clangImporter =
|
||||
static_cast<ClangImporter *>(ScanASTContext.getClangModuleLoader());
|
||||
std::vector<std::string> buildArgs;
|
||||
@@ -355,7 +348,7 @@ ModuleDependencyScanner::getMainModuleDependencyInfo(ModuleDecl *mainModule) {
|
||||
});
|
||||
|
||||
auto mainDependencies = ModuleDependencyInfo::forSwiftSourceModule(
|
||||
{}, buildCommands, {}, {}, {}, ExtraPCMArgs);
|
||||
{}, buildCommands, {}, {}, {});
|
||||
|
||||
if (ScanASTContext.CASOpts.EnableCaching) {
|
||||
std::vector<std::string> clangDependencyFiles;
|
||||
|
||||
Reference in New Issue
Block a user