Skip to content

Commit d23e5ba

Browse files
authored
Add support for newer C++ language standards. (#2716)
* Add support for newer C++ language standards. * This adds support for two newer C++ standards. * Add availability markers. * Updated availability for this not landing in 5.3.
1 parent 75936ef commit d23e5ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sources/PackageDescription/LanguageStandardSettings.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ public enum CXXLanguageStandard: String, Encodable {
5858
case cxx1z = "c++1z"
5959
/// The identifier for the GNU++1z language standard.
6060
case gnucxx1z = "gnu++1z"
61+
/// The identifier for the C++17 language standard.
62+
@available(_PackageDescription, introduced: 999.0)
63+
case cxx17 = "c++17"
64+
/// The identifier for the GNU++17 language standard.
65+
@available(_PackageDescription, introduced: 999.0)
66+
case gnucxx17 = "gnu++17"
67+
/// The identifier for the C++2a language standard.
68+
@available(_PackageDescription, introduced: 999.0)
69+
case cxx2a = "c++2a"
70+
/// The identifier for the GNU++2a language standard.
71+
@available(_PackageDescription, introduced: 999.0)
72+
case gnucxx2a = "gnu++2a"
6173
}
6274

6375
#if !PACKAGE_DESCRIPTION_4

0 commit comments

Comments
 (0)