diff options
| author | ruki <[email protected]> | 2017-06-27 20:50:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-27 20:50:52 +0800 |
| commit | 02089d7955813aee5d34671f2a92639d8b8bd7d3 (patch) | |
| tree | d8fcfb023190972826d7679d960d9d999941bc4e /xmake/core/tool/tool.lua | |
| parent | d88cab7a400904e6a44f795479cbc3f2bdcc6297 (diff) | |
improve option.check using has_cxsnippets
Diffstat (limited to 'xmake/core/tool/tool.lua')
| -rw-r--r-- | xmake/core/tool/tool.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index 3be75f4d4..67c95cc24 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -116,10 +116,10 @@ function tool.load(kind) end -- import find_toolname() - local find_toolname = import("lib.detect.find_toolname") + tool._find_toolname = tool._find_toolname or import("lib.detect.find_toolname") -- get the tool name from the program - local ok, name_or_errors = sandbox.load(find_toolname, program) + local ok, name_or_errors = sandbox.load(tool._find_toolname, program) if not ok then return nil, name_or_errors end |
