Skip to content

os.target

Ben Ratzlaff edited this page May 28, 2019 · 3 revisions

Returns the name of the operating system currently being targeted.
See system for a complete list of OS identifiers.

The targeted OS may be overridden on the command line with the --os option.

$ premake5 --os=macosx xcode4

Examples

print("Target os: " .. os.target())

See Also

system

Availability

Premake 5.0.0 alpha 12 or later.

Clone this wiki locally