summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-05 18:09:00 +0800
committerruki <[email protected]>2016-07-05 18:09:00 +0800
commit014f21c729cdab110bcc0a712084c50162f08f39 (patch)
tree62830ce510891c05937d77699458352a6f65c6e9 /xmake/core/platform/platform.lua
parent09317b8b9ba669d5d957455e1a658645efbbc2cb (diff)
restore platform.tool
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 5f431d671..bdcf803ad 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -319,6 +319,16 @@ function platform.get(name)
end
end
+-- get the platform tool from the kind
+--
+-- .e.g cc, cxx, mm, mxx, as, ar, ld, sh, ..
+--
+function platform.tool(kind)
+
+ -- get it
+ return config.get(kind)
+end
+
-- get the platform archs
function platform.archs(plat)