diff options
| author | ruki <[email protected]> | 2015-06-15 14:41:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-15 14:41:00 +0800 |
| commit | 351b402b8d0f5ee48097742c7b59a53054dd10ef (patch) | |
| tree | edf2696bd2a1035eaa113f124344ca0e6d5a9a65 /xmake/scripts/platform/platform.lua | |
| parent | 2ff2b14ec02d4d2ec77d26213412c1b82473bf8d (diff) | |
add os name
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
| -rw-r--r-- | xmake/scripts/platform/platform.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua index 07981c40a..a84f80187 100644 --- a/xmake/scripts/platform/platform.lua +++ b/xmake/scripts/platform/platform.lua @@ -161,6 +161,13 @@ function platform.make() return platform._configs(config.get("plat")) end +-- get the platform os +function platform.os() + + -- ok? + return platform.module()._OS +end + -- get the given configure function platform.get(name) |
