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