From 0a10af13f2c6065b5699d6111bceddf4c4bdd4af Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Wed, 27 Jul 2016 16:28:04 -0700 Subject: [PATCH] [SE-0133] flatten() has been renamed to joined() --- Sources/PackageLoading/Module+PkgConfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PackageLoading/Module+PkgConfig.swift b/Sources/PackageLoading/Module+PkgConfig.swift index 1bcfb6f68d9..00862e951d2 100644 --- a/Sources/PackageLoading/Module+PkgConfig.swift +++ b/Sources/PackageLoading/Module+PkgConfig.swift @@ -19,7 +19,7 @@ extension ModuleProtocol { // swift compiler. public func pkgConfigSwiftcArgs() throws -> [String] { let pkgArgs = try pkgConfigArgs() - return pkgArgs.cFlags.map{["-Xcc", $0]}.flatten() + pkgArgs.libs + return pkgArgs.cFlags.map{["-Xcc", $0]}.joined() + pkgArgs.libs } /// Finds cFlags and link flags for all the CModule i.e. System Module