diff options
| author | Saikari <[email protected]> | 2026-02-15 23:45:11 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-15 23:45:11 +0300 |
| commit | fc17a30b0ad0642441dcd5d99c298e145abcc765 (patch) | |
| tree | 5f7b27ff85aed72277a3a09664287fa61020fc6a | |
| parent | b82ccd6f714b59c4dd518d7dc2b07558a72d7a50 (diff) | |
revert
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index 9c2184fe1..b8c7b71a5 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -22,21 +22,6 @@ import("lib.detect.find_program") import("lib.detect.find_programver") import("core.cache.detectcache") -import("core.base.option") - --- check for Gigabyte's GCC.exe -function _check_gigabyte_gcc(program) - if is_host("windows") then - local winos = import("core.base.winos", {try = true}) - if winos and winos.file_signature then - local sig = try { function () return winos.file_signature(program) end } - if sig and sig.signer_name and sig.signer_name:find("GIGA-BYTE", 1, true) then - return false - end - end - end - return true -end -- detect whether the current gcc compiler is clang function check_clang(program, opt) @@ -69,25 +54,6 @@ end function main(opt) opt = opt or {} opt.norunfile = true - - -- select GIGABYTE/GCC.exe? - local check_orig = opt.check - opt.check = function (program) - if not _check_gigabyte_gcc(program) then - return false - end - if check_orig then - if type(check_orig) == "function" then - return check_orig(program) - elseif type(check_orig) == "string" then - return os.runv(program, {check_orig}, {envs = opt.envs, shell = opt.shell}) - elseif type(check_orig) == "table" then - return os.runv(program, check_orig, {envs = opt.envs, shell = opt.shell}) - end - end - return os.runv(program, {"--version"}, {envs = opt.envs, shell = opt.shell}) - end - local program = find_program(opt.program or "gcc", opt) local version = nil if program and opt.version then |
