summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-01 09:28:03 +0800
committerGitHub <[email protected]>2023-08-01 09:28:03 +0800
commitc74acf158920e9244cf04d6c989a28776af8ab75 (patch)
treef97af5dc9bbf51ee0615e2366a01b51c82909c09
parentfba1d1faa2fcb01b786c2c02274237e90575634c (diff)
Update find_bison.lua
-rw-r--r--xmake/modules/detect/tools/find_bison.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/modules/detect/tools/find_bison.lua b/xmake/modules/detect/tools/find_bison.lua
index fb3f0170f..56eda7dfe 100644
--- a/xmake/modules/detect/tools/find_bison.lua
+++ b/xmake/modules/detect/tools/find_bison.lua
@@ -36,16 +36,12 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
-
- -- init options
opt = opt or {}
-
- -- find program
local program = find_program(opt.program or "bison", opt)
-- try win_bison if bison is not found on windows
if not program and is_host("windows") then
- program = find_program("win_bison.exe", opt)
+ program = find_program("win_bison", opt)
end
-- find program version
@@ -53,7 +49,5 @@ function main(opt)
if program and opt and opt.version then
version = find_programver(program, opt)
end
-
- -- ok?
return program, version
end