diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_flex.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_flex.lua b/xmake/modules/detect/tools/find_flex.lua index 6276000c1..3d3a7c689 100644 --- a/xmake/modules/detect/tools/find_flex.lua +++ b/xmake/modules/detect/tools/find_flex.lua @@ -44,7 +44,7 @@ function main(opt) local program = find_program(opt.program or "flex", opt) -- try win_flex if flex is not found on windows - if not program and not opt.program and os.host() == "windows" then + if not program and is_host("windows") then program = find_program("win_flex", opt) end |
