From 39aa24a3192deb910a4b19b67a7e0178eb0f3f4a Mon Sep 17 00:00:00 2001 From: Saikari Date: Wed, 18 Feb 2026 00:11:23 +0300 Subject: sigh --- xmake/modules/detect/tools/find_gcc.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 576f6aa28..296008e3d 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -103,8 +103,11 @@ function main(opt) opt = opt or {} -- save the original check opt.check_gcc = opt.check - opt.check = _check_gigabyte_gcc - -- opt.norunfile = true + if is_host("windows") then + opt.check = _check_gigabyte_gcc + else + opt.norunfile = true + end local program = find_program(opt.program or "gcc", opt) local version = nil if program and opt.version then -- cgit v1.3.1