diff options
| author | ruki <[email protected]> | 2017-07-26 09:40:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-26 09:40:24 +0800 |
| commit | 0a36354d2cbc74c08360a9a805d2179269aaec7e (patch) | |
| tree | ffca792f4c09faaa7c57c46483ac44c1ee69516a /xmake/modules/lib/detect/find_tool.lua | |
| parent | 784ce258968723be7260bd7bcccf34515b08b462 (diff) | |
update manual docs
Diffstat (limited to 'xmake/modules/lib/detect/find_tool.lua')
| -rw-r--r-- | xmake/modules/lib/detect/find_tool.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/lib/detect/find_tool.lua b/xmake/modules/lib/detect/find_tool.lua index 6d74a7804..226674dfb 100644 --- a/xmake/modules/lib/detect/find_tool.lua +++ b/xmake/modules/lib/detect/find_tool.lua @@ -50,7 +50,7 @@ end -- local tool = find_tool("clang") -- local tool = find_tool("clang", {program = "xcrun -sdk macosx clang"}) -- local tool = find_tool("clang", {pathes = {"/usr/bin", "/usr/local/bin"}}) --- local tool = find_tool("clang", {check= "--help"}) -- simple check command: ccache --help +-- local tool = find_tool("clang", {check = "--help"}) -- simple check command: ccache --help -- local tool = find_tool("clang", {check = function (tool) os.run("%s -h", tool) end}) -- local tool = find_tool("clang", {pathes = {"$(env PATH)", "$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger)"}}) -- local tool = find_tool("clang", {pathes = {"$(env PATH)", function () return "/usr/bin"end}}) |
