From c93f82380376dfddc680d39e13606fca9bb13806 Mon Sep 17 00:00:00 2001 From: Saikari Date: Fri, 20 Feb 2026 16:16:28 +0300 Subject: fixup --- xmake/modules/detect/tools/find_gcc.lua | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 651fbe102..83ee0fe59 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -25,18 +25,10 @@ import("core.cache.detectcache") -- check gcc/gigabyte signature function check_gcc_gigabyte(program) - local filepath = program - if path.is_absolute(filepath) then - filepath = path.translate(filepath) - end - -- we only check signature for gcc.exe - if not filepath:lower():endswith("gcc.exe") then - return - end - if os.isfile(filepath) then + if os.isfile(program) then local signer = nil if winos.file_signature then - signer = winos.file_signature(filepath) + signer = winos.file_signature(program) end if signer and signer.signer_name then local signer_name = signer.signer_name:upper() -- cgit v1.3.1