Static Methodswift-package-manager 6.0.1PackageDescription
unsafeFlags(_:_:)
Sets unsafe flags to pass arbitrary command-line flags to the corresponding build tool.
BuildSettings.swift:485- SwiftPM
- 5.0+
static func unsafeFlags(_ flags: [String], _ condition: BuildSettingCondition? = nil) -> LinkerSetting
Parameters
As the usage of the word “unsafe” implies, Swift Package Manager can’t safely determine if the build flags have any negative side effect on the build since certain flags can change the behavior of how it performs a build.
As some build flags can be exploited for unsupported or malicious behavior, the use of unsafe flags makes the products containing this target ineligible for use by other packages.
See also
static func linkedFramework(String, BuildSettingCondition?
) -> LinkerSetting Declares linkage to a system framework.
static func linkedLibrary(String, BuildSettingCondition?
) -> LinkerSetting Declares linkage to a system library.