mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -1171,9 +1171,22 @@ static bool emitAnyWholeModulePostTypeCheckSupplementaryOutputs(
|
||||
bool hadAnyError = false;
|
||||
|
||||
if (opts.InputsAndOutputs.hasObjCHeaderOutputPath()) {
|
||||
std::string BridgingHeaderPathForPrint;
|
||||
if (!opts.ImplicitObjCHeaderPath.empty()) {
|
||||
if (opts.BridgingHeaderDirForPrint.hasValue()) {
|
||||
// User specified preferred directory for including, use that dir.
|
||||
llvm::SmallString<32> Buffer(*opts.BridgingHeaderDirForPrint);
|
||||
llvm::sys::path::append(Buffer,
|
||||
llvm::sys::path::filename(opts.ImplicitObjCHeaderPath));
|
||||
BridgingHeaderPathForPrint = Buffer.str();
|
||||
} else {
|
||||
// By default, include the given bridging header path directly.
|
||||
BridgingHeaderPathForPrint = opts.ImplicitObjCHeaderPath;
|
||||
}
|
||||
}
|
||||
hadAnyError |= printAsObjCIfNeeded(
|
||||
Invocation.getObjCHeaderOutputPathForAtMostOnePrimary(),
|
||||
Instance.getMainModule(), opts.ImplicitObjCHeaderPath, moduleIsPublic);
|
||||
Instance.getMainModule(), BridgingHeaderPathForPrint, moduleIsPublic);
|
||||
}
|
||||
|
||||
if (opts.InputsAndOutputs.hasModuleInterfaceOutputPath()) {
|
||||
|
||||
Reference in New Issue
Block a user