Skip to main content

swiftversion

Specifies the version of Swift to compile with.

swiftversion ("value")

Parameters

value is one of:

ValueDescription
4.0Swift Language Version 4.0
4.2Swift Language Version 4.2
5.0Swift Language Version 5.0

Applies To

Project configurations.

Availability

Premake 5.0.0-beta1 or later.

Examples

swiftversion "4.2"