summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-17 23:02:19 +0300
committerSaikari <[email protected]>2026-02-17 23:02:19 +0300
commit26d3ba66b3625db632d350c1314710264d40546a (patch)
tree2b56a3c1cfaeb2678b4f1a91ef010501fbac13dd
parent05ebd2e41e28a1ef4cb3184e822a44063fcc63e2 (diff)
try fix norunfile = true
-rw-r--r--xmake/modules/detect/tools/find_gcc.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua
index 10e23b797..3545daec2 100644
--- a/xmake/modules/detect/tools/find_gcc.lua
+++ b/xmake/modules/detect/tools/find_gcc.lua
@@ -26,7 +26,7 @@ import("core.cache.detectcache")
-- check gigabyte gcc
function _check_gigabyte_gcc(program)
-- avoid gcc.exe signed by GIGA-BYTE ref: https://github.com/xmake-io/xmake/issues/5629
- if is_host("windows") then -- is_plat("windows", "mingw")
+ if is_host("windows") then
local is_gigabyte = false
if program:lower():endswith("gcc.exe") then
import("core.base.winos")
@@ -95,7 +95,11 @@ end
function main(opt)
opt = opt or {}
opt.norunfile = true
- opt.check = _check_gigabyte_gcc
+ if is_host("windows") then
+ opt.check = _check_gcc
+ else
+ opt.norunfile = true
+ end
local program = find_program(opt.program or "gcc", opt)
local version = nil
if program and opt.version then