From 351b402b8d0f5ee48097742c7b59a53054dd10ef Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 15 Jun 2015 14:41:00 +0800 Subject: add os name --- xmake/scripts/platform/platform.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmake/scripts/platform/platform.lua') 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) -- cgit v1.3.1