Skip to content

Commit

Permalink
Merge pull request #76378 from cachemeifyoucan/eng/PR-135611011
Browse files Browse the repository at this point in the history
[Modules] Make SubInstance spawn correctly under DirectCC1Mode
  • Loading branch information
cachemeifyoucan authored Sep 11, 2024
2 parents e24f296 + a6c560b commit 4693a47
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/Frontend/ModuleInterfaceLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1953,9 +1953,13 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
genericSubInvocation.getFrontendOptions()
.DependencyScanningSubInvocation = true;
} else if (LoaderOpts.strictImplicitModuleContext ||
// Explicit module Interface verification jobs still spawn a sub-instance
// and we must ensure this sub-instance gets all of the Xcc flags.
LoaderOpts.disableImplicitSwiftModule) {
// Explicit module Interface verification jobs still spawn a
// sub-instance and we must ensure this sub-instance gets all of
// the Xcc flags.
LoaderOpts.disableImplicitSwiftModule ||
// If using direct cc1 argument mode for lldb or typecheck
// interface, inherit all clang arguments.
clangImporterOpts.DirectClangCC1ModuleBuild) {
// If the compiler has been asked to be strict with ensuring downstream
// dependencies get the parent invocation's context, inherit the extra Clang
// arguments also. Inherit any clang-specific state of the compilation
Expand Down

0 comments on commit 4693a47

Please sign in to comment.