mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge main into next - 2021-07-16
Conflicts:
lib/IRGen/IRGenFunction.cpp
Take the changes made in #38386
This commit is contained in:
@@ -1049,11 +1049,16 @@ identifyMainModuleDependencies(CompilerInstance &instance) {
|
||||
instance.getASTContext()
|
||||
.LangOpts.EffectiveLanguageVersion.asAPINotesVersionString())
|
||||
.str();
|
||||
|
||||
// Compute the dependencies of the main module.
|
||||
auto mainDependencies = ModuleDependencies::forMainSwiftModule(
|
||||
{// ExtraPCMArgs
|
||||
"-Xcc", "-target", "-Xcc",
|
||||
instance.getASTContext().LangOpts.Target.str(), "-Xcc", apinotesVer});
|
||||
std::vector<StringRef> ExtraPCMArgs = {
|
||||
"-Xcc", apinotesVer
|
||||
};
|
||||
if (!instance.getASTContext().LangOpts.ClangTarget.hasValue())
|
||||
ExtraPCMArgs.insert(ExtraPCMArgs.begin(),
|
||||
{"-Xcc", "-target", "-Xcc",
|
||||
instance.getASTContext().LangOpts.Target.str()});
|
||||
auto mainDependencies = ModuleDependencies::forMainSwiftModule(ExtraPCMArgs);
|
||||
|
||||
// Compute Implicit dependencies of the main module
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user