Skip to main content

os.getSystemTags

Returns the list of tags corresponding to a system.

There are tags specific to each operating system (see system() for a complete list of identifiers.), and meta tags like posix, darwin, desktop and mobile tags.

Tags

OSTags
aixaix, posix, desktop
androidandroid, mobile
bsdbsd, posix, desktop
haikuhaiku, posix, desktop
iosios, darwin, posix, mobile
linuxlinux, posix, desktop
macosxmacosx, darwin, posix, desktop
solarissolaris, posix, desktop
uwpuwp, windows, desktop
windowswindows, win32, desktop

Examples

print("iOS system tags: " .. table.concat(os.getSystemTags("ios"), ", "))
-- iOS system tags: ios, darwin, posix, mobile

See Also

os.istarget os.target

Availability

Premake 5.0.0 alpha 12 or later.