Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.56 KB

File metadata and controls

55 lines (44 loc) · 1.56 KB

Specifies the C++ dialect to compile with.

cppdialect ("value")

Parameters

value is one of:

Value Description
Default the default C++ dialect for the toolset
C++latest the latest C++ dialect for the toolset or action where available, otherwise the latest C++ dialect supported by Premake
C++98 ISO C++98 Standard
C++0x ISO C++11 Draft
C++11 ISO C++11 Standard
C++1y ISO C++14 Draft
C++14 ISO C++14 Standard
C++1z ISO C++17 Draft
C++17 ISO C++17 Standard
C++2a ISO C++20 Draft
C++20 ISO C++20 Standard
C++2b ISO C++23 Draft
C++23 ISO C++23 Standard
C++2c ISO C++26 Draft
C++26 ISO C++26 Standard
gnu++98 GNU dialect of ISO C++98 Standard
gnu++0x GNU dialect of ISO C++11 Draft
gnu++11 GNU dialect of ISO C++11 Standard
gnu++1y GNU dialect of ISO C++14 Draft
gnu++14 GNU dialect of ISO C++14 Standard
gnu++1z GNU dialect of ISO C++17 Draft
gnu++17 GNU dialect of ISO C++17 Standard
gnu++2a GNU dialect of ISO C++20 Draft
gnu++20 GNU dialect of ISO C++20 Standard
gnu++2b GNU dialect of ISO C++23 Draft
gnu++23 GNU dialect of ISO C++23 Standard
gnu++2c GNU dialect of ISO C++23 Draft
gnu++26 GNU dialect of ISO C++26 Standard

Applies To

Project and file configurations.

Availability

Premake 5.0.0-alpha12 or later.

Examples

cppdialect "C++11"