diff options
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) |
