Static Methodswift-package-manager 6.0.1PackageDescription
interoperabilityMode(_:_:)
Enable Swift interoperability with a given language.
BuildSettings.swift:383- SwiftPM
- 5.9+
static func interoperabilityMode(_ mode: InteroperabilityMode, _ condition: BuildSettingCondition? = nil) -> SwiftSetting
Parameters
This is useful for enabling interoperability with Swift and C++ for a given target.
Enabling C++ interoperability mode might alter the way some existing C and Objective-C APIs are imported.
Other members in extension
Types
Type members
static func define(String, BuildSettingCondition?
) -> SwiftSetting Defines a compilation condition.
static func enableExperimentalFeature(String, BuildSettingCondition?
) -> SwiftSetting Enable an experimental feature with the given name.
static func enableUpcomingFeature(String, BuildSettingCondition?
) -> SwiftSetting Enable an upcoming feature with the given name.
static func swiftLanguageMode(SwiftLanguageMode, BuildSettingCondition?
) -> SwiftSetting Defines a
-language-mode
to pass to the corresponding build tool.static func unsafeFlags([String], BuildSettingCondition?
) -> SwiftSetting Set unsafe flags to pass arbitrary command-line flags to the corresponding build tool.
Show obsolete interfaces (1)
Hide obsolete interfaces
static func swiftLanguageVersion(SwiftVersion, BuildSettingCondition?
) -> SwiftSetting Defines a
-swift-version
to pass to the corresponding build tool.