Merge pull request #81912 from artemcm/FixImplicitBuildCXXInteropCycle_62

[6.2 🍒][C++Interop] Do not query C++ Standard Library Swift overlays when building Swift modules which were built without C++ interop
This commit is contained in:
Artem Chikin
2025-06-02 23:59:38 -07:00
committed by GitHub
8 changed files with 128 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ namespace swift {
struct DiagnosticBehavior;
class DiagnosticEngine;
class FrontendOptions;
/// Kind of implicit platform conditions.
enum class PlatformConditionKind {
@@ -339,7 +340,8 @@ namespace swift {
std::optional<version::Version> FormalCxxInteropMode;
void setCxxInteropFromArgs(llvm::opt::ArgList &Args,
swift::DiagnosticEngine &Diags);
swift::DiagnosticEngine &Diags,
const FrontendOptions &FrontendOpts);
/// The C++ standard library used for the current build. This can differ
/// from the default C++ stdlib on a particular platform when `-Xcc