diff options
| author | Saikari <[email protected]> | 2026-02-20 16:16:28 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-20 16:16:28 +0300 |
| commit | c93f82380376dfddc680d39e13606fca9bb13806 (patch) | |
| tree | 031b88f86a68ca11b886710332854247d673afd9 | |
| parent | b66b14a6b56e3eab79ebedd51be44fee81be174e (diff) | |
fixup
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 12 |
1 files 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() |
