diff options
| author | ruki <[email protected]> | 2023-08-01 09:28:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-01 09:28:03 +0800 |
| commit | c74acf158920e9244cf04d6c989a28776af8ab75 (patch) | |
| tree | f97af5dc9bbf51ee0615e2366a01b51c82909c09 | |
| parent | fba1d1faa2fcb01b786c2c02274237e90575634c (diff) | |
Update find_bison.lua
| -rw-r--r-- | xmake/modules/detect/tools/find_bison.lua | 8 |
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 |
