summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-15 20:45:27 +0800
committerruki <[email protected]>2017-02-15 20:45:27 +0800
commitb98e6978cd6514169c7f0fea4ab6ba63a093754c (patch)
tree087de92610444ebe2eb2153219974c563924a192 /xmake/core/platform/platform.lua
parentdfce526796ade25d4da69c2542929e9c4662402a (diff)
modify targetfile
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index c090744cc..ac2f87a0a 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -293,13 +293,13 @@ function platform.tooldirs(plat)
return platform.get("tooldirs", plat)
end
--- get the given format
-function platform.format(kind)
+-- get the format of the given target kind for platform
+function platform.format(targetkind)
-- get formats
local formats = platform.get("formats")
if formats then
- return formats[kind]
+ return formats[targetkind]
end
end