mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Restore propagation of -Xcc flags to scanner's Swift Textual interface-reading sub-invocation
This commit is contained in:
@@ -1747,7 +1747,8 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
// If the compiler has been asked to be strict with ensuring downstream dependencies
|
||||
// get the parent invocation's context, or this is an Explicit build, inherit the
|
||||
// extra Clang arguments also.
|
||||
if (LoaderOpts.strictImplicitModuleContext || LoaderOpts.disableImplicitSwiftModule) {
|
||||
if (LoaderOpts.strictImplicitModuleContext || LoaderOpts.disableImplicitSwiftModule ||
|
||||
LoaderOpts.requestedAction == FrontendOptions::ActionType::ScanDependencies) {
|
||||
// Inherit any clang-specific state of the compilation (macros, clang flags, etc.)
|
||||
subClangImporterOpts.ExtraArgs = clangImporterOpts.ExtraArgs;
|
||||
for (auto arg : subClangImporterOpts.ExtraArgs) {
|
||||
|
||||
Reference in New Issue
Block a user