From 7d1fb079c4bc57b24cc5696ac04d3fb31571199a Mon Sep 17 00:00:00 2001 From: Saikari Date: Tue, 17 Feb 2026 23:55:13 +0300 Subject: retry --- xmake/modules/detect/tools/find_gcc.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 166c45bdc..cd52a06d2 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -31,10 +31,13 @@ function _check_gigabyte_gcc(program, opt) if program:lower():endswith("gcc.exe") then if winos.file_signature then local check_signature = function (program) - if os.isfile(program) then - local signer = winos.file_signature(program) - if signer and signer.signer_name and signer.signer_name:find("GIGA-BYTE", 1, true) then - return true + local filepath = path.translate(program) + if os.isfile(filepath) then + local signer = winos.file_signature(filepath) + if signer and signer.signer_name then + if signer.signer_name:find("GIGA-BYTE", 1, true) then + return true + end end end end -- cgit v1.3.1