diff options
| author | ruki <[email protected]> | 2016-07-05 18:09:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-05 18:09:00 +0800 |
| commit | 014f21c729cdab110bcc0a712084c50162f08f39 (patch) | |
| tree | 62830ce510891c05937d77699458352a6f65c6e9 /xmake/core/platform/platform.lua | |
| parent | 09317b8b9ba669d5d957455e1a658645efbbc2cb (diff) | |
restore platform.tool
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 10 |
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) |
