From b3cc1e1c42d8b367f2d0b1a93c236abe1cc94b34 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 16 Jun 2017 15:45:31 +0800 Subject: replace old find compiler scripts and fix string.endswith --- xmake/modules/detect/tool/find_git.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmake/modules/detect/tool/find_git.lua') diff --git a/xmake/modules/detect/tool/find_git.lua b/xmake/modules/detect/tool/find_git.lua index 12f08978d..b21455b0c 100644 --- a/xmake/modules/detect/tool/find_git.lua +++ b/xmake/modules/detect/tool/find_git.lua @@ -40,9 +40,12 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) + + -- init options + opt = opt or {} -- find program - local program = find_program("git") + local program = find_program(opt.program or "git", opt.pathes, opt.check) -- find program version local version = nil -- cgit v1.3.1