Skip to content

Commit 0bade0f

Browse files
committed
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.
1 parent c1921bf commit 0bade0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SwiftCompilerSources/Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.4
1+
// swift-tools-version:5.9
22
//===--- Package.swift.in - SwiftCompiler SwiftPM package -----------------===//
33
//
44
// This source file is part of the Swift.org open source project
@@ -15,6 +15,7 @@ import PackageDescription
1515

1616
private extension Target {
1717
static let defaultSwiftSettings: [SwiftSetting] = [
18+
.interoperabilityMode(.Cxx),
1819
.unsafeFlags([
1920
"-Xfrontend", "-validate-tbd-against-ir=none",
2021
"-Xfrontend", "-enable-experimental-cxx-interop",

0 commit comments

Comments
 (0)