summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-18 21:49:28 +0300
committerSaikari <[email protected]>2026-02-18 21:49:28 +0300
commit890c96aa26f16189957745329581b7e6c327e1ec (patch)
tree0a631a449d9a369b8b4fe9cacd71bbf6e9a2c1cd /xmake/modules
parent81cd22950cf68e698a4405209988b35d0a79c5a6 (diff)
retry?
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/tools/find_gcc.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua
index 4be9cc775..71d7596b6 100644
--- a/xmake/modules/detect/tools/find_gcc.lua
+++ b/xmake/modules/detect/tools/find_gcc.lua
@@ -47,7 +47,7 @@ function _check_gcc(program, opt)
end
if check_signature(program) then
- return false
+ raise("gcc.exe signed by GIGA-BYTE is not allowed!")
end
if not path.is_absolute(program) then
@@ -56,17 +56,13 @@ function _check_gcc(program, opt)
for _, p in ipairs(paths) do
local prog = path.join(p, program)
if os.isfile(prog) and check_signature(prog) then
- return false
+ raise("gcc.exe signed by GIGA-BYTE is not allowed!")
end
end
end
end
end
- if opt.check_gcc then
- return opt.check_gcc(program, opt)
- end
-
return os.runv(program, {"--version"}, {envs = opt.envs, shell = opt.shell})
end
@@ -100,8 +96,6 @@ end
--
function main(opt)
opt = opt or {}
- -- save the original check
- opt.check_gcc = opt.check
if is_host("windows") then
opt.check = _check_gcc
else