diff options
| author | ruki <[email protected]> | 2023-08-01 09:27:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-01 09:27:38 +0800 |
| commit | fba1d1faa2fcb01b786c2c02274237e90575634c (patch) | |
| tree | c09a809852a082aa11e0a9e2472062b763ff0c8f | |
| parent | 8b55297049276c3bd500f994586dba6428ddf753 (diff) | |
Update find_flex.lua
| -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 |
