summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-20 00:43:39 +0800
committerruki <[email protected]>2019-04-19 22:21:57 +0800
commit15f2387b83a470f0d01e79613ac4a90cfc25e8ea (patch)
tree64542a4510a56d0f058e573b6654c3dff67295f8 /xmake/core/platform/platform.lua
parent11e80baf5a40fcfb7165a85142791c9a45c83051 (diff)
impl build envs
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 36c3ca2b3..3d79c52bc 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -308,7 +308,7 @@ end
--
-- .e.g cc, cxx, mm, mxx, as, ar, ld, sh, ..
--
-function platform.tool(toolkind)
+function platform.tool(toolkind, plat)
-- attempt to get program from config first
local program = config.get(toolkind)
@@ -316,7 +316,7 @@ function platform.tool(toolkind)
if program == nil then
-- get the current platform
- local instance, errors = platform.load()
+ local instance, errors = platform.load(plat)
if not instance then
os.raise(errors)
end