Skip to content

Commit

Permalink
Update find_flex.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Aug 1, 2023
1 parent cb552e8 commit 0ad563b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xmake/modules/detect/tools/find_flex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@ import("lib.detect.find_programver")
function main(opt)
opt = opt or {}
local program = find_program(opt.program or "flex", opt)

-- try win_flex if flex is not found on windows
if not program and is_host("windows") then
if not program and not opt.program and is_host("windows") then
program = find_program("win_flex", opt)
end

-- find program version
local version = nil
if program and opt and opt.version then
version = find_programver(program, opt)
Expand Down

0 comments on commit 0ad563b

Please sign in to comment.