-
-
Notifications
You must be signed in to change notification settings - Fork 621
os.host
starkos edited this page Apr 10, 2021
·
3 revisions
This wiki is no longer being maintained.
Identify the currently executing operating system.
id = os.host()
None.
An operating system identifier; see system() for a complete list of identifiers.
Note that this function returns the OS that Premake is currently running on, which is not necessarily the same as the OS that Premake is generating files for. If you are running on Mac OS X and generating Visual Studio project files, the identifier is "macosx".
Premake 5.0.0 alpha 12 or later.
if os.host() == "windows" then
-- do something Windows-specific
end