summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_flex.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-01 09:28:35 +0800
committerGitHub <[email protected]>2023-08-01 09:28:35 +0800
commite888f3f32af2306eb3b8d3b934be196e11430c22 (patch)
tree084e81b78f6a7b93788ea09b67f0858249791f92 /xmake/modules/detect/tools/find_flex.lua
parentc74acf158920e9244cf04d6c989a28776af8ab75 (diff)
Update find_flex.lua
Diffstat (limited to 'xmake/modules/detect/tools/find_flex.lua')
-rw-r--r--xmake/modules/detect/tools/find_flex.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/modules/detect/tools/find_flex.lua b/xmake/modules/detect/tools/find_flex.lua
index 3d3a7c689..12ee4365a 100644
--- a/xmake/modules/detect/tools/find_flex.lua
+++ b/xmake/modules/detect/tools/find_flex.lua
@@ -36,11 +36,7 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
-
- -- init options
opt = opt or {}
-
- -- find program
local program = find_program(opt.program or "flex", opt)
-- try win_flex if flex is not found on windows
@@ -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