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.
This commit is contained in:
Saleem Abdulrasool
2023-08-08 14:42:56 -07:00
parent 8260934afa
commit 61a2b2e97e

View File

@@ -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",