diff options
| author | Saikari <[email protected]> | 2026-02-18 00:11:23 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-18 00:11:23 +0300 |
| commit | 39aa24a3192deb910a4b19b67a7e0178eb0f3f4a (patch) | |
| tree | f834a41c1baa8801dfef94decc5655b36c4777b4 | |
| parent | 9105a6b957d63c2a623a7e322210902c040d4940 (diff) | |
sigh
| -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 |
