summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-17 23:55:13 +0300
committerSaikari <[email protected]>2026-02-17 23:55:13 +0300
commit7d1fb079c4bc57b24cc5696ac04d3fb31571199a (patch)
treece310c9c5728fc1af82cf11793833cb5ddc28434
parent451bdbc8c04327d7b060fc2ffb5db3842a127fb0 (diff)
retry
-rw-r--r--xmake/modules/detect/tools/find_gcc.lua11
1 files 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