diff options
| author | Saikari <[email protected]> | 2026-02-17 23:39:41 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-17 23:39:41 +0300 |
| commit | 451bdbc8c04327d7b060fc2ffb5db3842a127fb0 (patch) | |
| tree | d4cd73f945cd483ca6014410e3144f5560da48c2 | |
| parent | ad77b2a47be8dd1809c46bc2406c57aa4e3a8117 (diff) | |
retry
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 9a81352b0..166c45bdc 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -26,7 +26,7 @@ import("core.cache.detectcache") -- check gigabyte gcc function _check_gigabyte_gcc(program, opt) -- avoid gcc.exe signed by GIGA-BYTE ref: https://github.com/xmake-io/xmake/issues/5629 - if is_host("windows") then + if is_host("windows") or is_subhost("msys", "cygwin") then local is_gigabyte = false if program:lower():endswith("gcc.exe") then if winos.file_signature then @@ -57,7 +57,7 @@ function _check_gigabyte_gcc(program, opt) end end if is_gigabyte then - return false + raise("gcc.exe signed by GIGA-BYTE is not supported, please use the official gcc from https://gcc.gnu.org/") end end |
