summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-17 21:07:11 +0800
committerruki <[email protected]>2015-06-17 21:07:11 +0800
commit178e8a75babbe555cd5a0e21749b454a659c39ea (patch)
tree4a3f8d73c14be55934acad9b5d48557e095e178c /xmake/scripts/platform/platform.lua
parentb66c637057b49a68394419767157ddf1113ec5c1 (diff)
using relative pathes for xmake.lua
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
-rw-r--r--xmake/scripts/platform/platform.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index a84f80187..bad7c8969 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -164,8 +164,12 @@ end
-- get the platform os
function platform.os()
+ -- get module
+ local module = platform.module()
+ if not module then return end
+
-- ok?
- return platform.module()._OS
+ return module._OS
end
-- get the given configure