mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user