diff options
| author | Saikari <[email protected]> | 2026-02-20 17:58:04 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-20 17:58:04 +0300 |
| commit | 97a4ee37a0057c670ba09003dc67ed50bc35fae4 (patch) | |
| tree | 73ceee84ae70919eb1d9c8b4aa64918e4c0b444d /xmake | |
| parent | 3d947bc6913b230138aaac67e9c22ed682c50560 (diff) | |
resolve gemini
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 83ee0fe59..d658ca1ff 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -44,20 +44,8 @@ end -- @see https://github.com/xmake-io/xmake/issues/5629 function _check_gcc_on_windows(program, opt) opt = opt or {} - if path.is_absolute(program) then - if check_gcc_gigabyte(program) then - raise("gcc.exe signed by GIGA-BYTE is not allowed!") - end - else - local paths = path.splitenv(vformat("$(env PATH)")) - if paths then - for _, p in ipairs(paths) do - local prog = path.join(p, program) - if os.isfile(prog) and check_gcc_gigabyte(prog) then - raise("gcc.exe signed by GIGA-BYTE is not allowed!") - end - end - end + if check_gcc_gigabyte(program) then + raise("gcc.exe signed by GIGA-BYTE is not allowed!") end return os.runv(program, {"--version"}, {envs = opt.envs, shell = opt.shell}) end |
