Skip to content

Add support for newer C++ language standards. #2716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Sources/PackageDescription/LanguageStandardSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ public enum CXXLanguageStandard: String, Encodable {
case cxx1z = "c++1z"
/// The identifier for the GNU++1z language standard.
case gnucxx1z = "gnu++1z"
/// The identifier for the C++17 language standard.
@available(_PackageDescription, introduced: 999.0)
case cxx17 = "c++17"
/// The identifier for the GNU++17 language standard.
@available(_PackageDescription, introduced: 999.0)
case gnucxx17 = "gnu++17"
/// The identifier for the C++2a language standard.
@available(_PackageDescription, introduced: 999.0)
case cxx2a = "c++2a"
/// The identifier for the GNU++2a language standard.
@available(_PackageDescription, introduced: 999.0)
case gnucxx2a = "gnu++2a"
}

#if !PACKAGE_DESCRIPTION_4
Expand Down