From 2880aa556bf5fbebb2d3811501ba1687283081ff Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 13 Feb 2019 16:23:38 -0500 Subject: [PATCH] This hack did not work in fact --- Package.swift | 9 ++------- Package@swift-5.0.swift | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 8 deletions(-) mode change 120000 => 100644 Package@swift-5.0.swift diff --git a/Package.swift b/Package.swift index 4c2a937..88bdb34 100644 --- a/Package.swift +++ b/Package.swift @@ -9,11 +9,6 @@ let pkg = Package( targets: [ .target(name: "Path", path: "Sources"), .testTarget(name: "PathTests", dependencies: ["Path"]), - ] + ], + swiftLanguageVersions: [.v4, .v4_2] ) - -pkg.swiftLanguageVersions = [.v4_2] - -#if swift(>=5) -pkg.swiftLanguageVersions.append(.v5) -#endif diff --git a/Package@swift-5.0.swift b/Package@swift-5.0.swift deleted file mode 120000 index c73cf0c..0000000 --- a/Package@swift-5.0.swift +++ /dev/null @@ -1 +0,0 @@ -Package.swift \ No newline at end of file diff --git a/Package@swift-5.0.swift b/Package@swift-5.0.swift new file mode 100644 index 0000000..8859ce1 --- /dev/null +++ b/Package@swift-5.0.swift @@ -0,0 +1,14 @@ +// swift-tools-version:5.0 +import PackageDescription + +let pkg = Package( + name: "Path.swift", + products: [ + .library(name: "Path", targets: ["Path"]), + ], + targets: [ + .target(name: "Path", path: "Sources"), + .testTarget(name: "PathTests", dependencies: ["Path"]), + ], + swiftLanguageVersions: [.v4, .v4_2, .v5] +)