We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0b458 commit fae6d5eCopy full SHA for fae6d5e
Sources/PackageLoading/Module+PkgConfig.swift
@@ -19,7 +19,7 @@ extension ModuleProtocol {
19
// swift compiler.
20
public func pkgConfigSwiftcArgs() throws -> [String] {
21
let pkgArgs = try pkgConfigArgs()
22
- return pkgArgs.cFlags.map{["-Xcc", $0]}.flatten() + pkgArgs.libs
+ return pkgArgs.cFlags.flatMap{ ["-Xcc", $0] } + pkgArgs.libs
23
}
24
25
/// Finds cFlags and link flags for all the CModule i.e. System Module
0 commit comments