diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 7 |
1 files 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 |
