From 61a2b2e97e801ed32f46c41f1bc7b67efa2dbf5f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 8 Aug 2023 14:42:56 -0700 Subject: [PATCH] SwiftCompilerSources: mark the required C++ interoperability Mark the Swift flags for interoperability mode rather than using the old spelling for enabling C++ interoperability. This is important as it allows the `cxxLanguageStandard` to flow through to the clang importer which is required to enable the use of the C++ headers. --- SwiftCompilerSources/Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SwiftCompilerSources/Package.swift b/SwiftCompilerSources/Package.swift index c2cd208a174..cf144f49b6a 100644 --- a/SwiftCompilerSources/Package.swift +++ b/SwiftCompilerSources/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.4 +// swift-tools-version:5.9 //===--- Package.swift.in - SwiftCompiler SwiftPM package -----------------===// // // This source file is part of the Swift.org open source project @@ -15,6 +15,7 @@ import PackageDescription private extension Target { static let defaultSwiftSettings: [SwiftSetting] = [ + .interoperabilityMode(.Cxx), .unsafeFlags([ "-Xfrontend", "-validate-tbd-against-ir=none", "-Xfrontend", "-enable-experimental-cxx-interop",