summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-01 09:27:04 +0800
committerGitHub <[email protected]>2023-08-01 09:27:04 +0800
commit8b55297049276c3bd500f994586dba6428ddf753 (patch)
tree46de2ddb33fbdb69880a787d5369602462752b30
parent160dedcc8bad127a35150f54d94005b30f18fff2 (diff)
Update find_bison.lua
-rw-r--r--xmake/modules/detect/tools/find_bison.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_bison.lua b/xmake/modules/detect/tools/find_bison.lua
index a32253f20..fb3f0170f 100644
--- a/xmake/modules/detect/tools/find_bison.lua
+++ b/xmake/modules/detect/tools/find_bison.lua
@@ -44,8 +44,8 @@ function main(opt)
local program = find_program(opt.program or "bison", opt)
-- try win_bison if bison is not found on windows
- if not program and not opt.program and os.host() == "windows" then
- program = find_program("win_bison", opt)
+ if not program and is_host("windows") then
+ program = find_program("win_bison.exe", opt)
end
-- find program version