summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/find_tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-14 23:53:06 +0800
committerruki <[email protected]>2017-06-14 23:53:06 +0800
commit62fd903400ccd362255ab8314dc7e599587ea521 (patch)
tree141ab68b92973774681e2a2c753a712acf5d4f26 /xmake/modules/lib/detect/find_tool.lua
parentd8f66856927cb9575be311a2102c8a6ad1deea51 (diff)
add find clang/gcc
Diffstat (limited to 'xmake/modules/lib/detect/find_tool.lua')
-rw-r--r--xmake/modules/lib/detect/find_tool.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/find_tool.lua b/xmake/modules/lib/detect/find_tool.lua
index f04b06602..74d446bb4 100644
--- a/xmake/modules/lib/detect/find_tool.lua
+++ b/xmake/modules/lib/detect/find_tool.lua
@@ -29,6 +29,9 @@ import("lib.detect.find_programver")
-- find tool from modules
function _find_from_modules(name, opt)
+ -- replace "+" to "x"
+ name = name:gsub("%+", "x")
+
-- "detect.tool.find_xxx" exists?
if os.isfile(path.join(os.programdir(), "modules", "detect", "tool", "find_" .. name .. ".lua")) then
local find_tool = import("detect.tool.find_" .. name)