From fba1d1faa2fcb01b786c2c02274237e90575634c Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 1 Aug 2023 09:27:38 +0800 Subject: Update find_flex.lua --- xmake/modules/detect/tools/find_flex.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1