diff options
| author | ruki <[email protected]> | 2017-06-19 20:14:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-19 20:14:09 +0800 |
| commit | e2d960162cd7c78eaa86ae3fc474a112ec4ddfbe (patch) | |
| tree | 6fe8f2d89b879f7cc55da4641c827f16e71b3d2e /xmake/core/platform/platform.lua | |
| parent | 8a7b62bca9d65dfe01a8f63016da48aa650c3a89 (diff) | |
use find_toolname in tool.lua
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 10 |
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) |
