From 178e8a75babbe555cd5a0e21749b454a659c39ea Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Jun 2015 21:07:11 +0800 Subject: using relative pathes for xmake.lua --- xmake/scripts/platform/platform.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xmake/scripts/platform/platform.lua') 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 -- cgit v1.3.1