Skip to main content

cdialect

Specifies the C dialect to compile with.

cdialect ("value")

Parameters

value one of:

ValueDescription
DefaultDefault C dialect for the toolset
C89ISO C89 Standard
C90ISO C90 Standard
C99ISO C99 Standard
C11ISO C11 Standard
C17ISO C17 Standard
C23ISO C23 Standard
gnu89GNU Dialect of ISO C89
gnu90GNU Dialect of ISO C90
gnu99GNU Dialect of ISO C99
gnu11GNU Dialect of ISO C11
gnu17GNU Dialect of ISO C17
gnu23GNU Dialect of ISO C23

Applies To

Project and file configurations.

Availability

Premake 5.0.0-alpha12 or later.

Examples

cdialect "C11"