summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 76ff5ff93..26852b60e 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -241,13 +241,13 @@ end
--
function platform.tool(toolkind)
- -- attempt to get it from config first
- local toolpath = config.get(toolkind)
- if toolpath ~= nil then
- return toolpath
+ -- attempt to get program from config first
+ local program = config.get(toolkind)
+ if program then
+ return program
else
- -- check the tool path
+ -- check it first
local check = platform.get("check")
if check then
check("config", toolkind)