зеркало из https://github.com/github/codeql-go.git
17 строки
731 B
Lua
17 строки
731 B
Lua
function RegisterExtractorPack()
|
|
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
|
|
if OperatingSystem == 'windows' then
|
|
goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
|
|
end
|
|
return {
|
|
CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'},
|
|
MatchCompilerName, nil, {trace = false}),
|
|
CreatePatternMatcher({'^go$', '^go%.exe$'}, MatchCompilerName,
|
|
goExtractor, {prepend = {'--mimic', '${compiler}'}})
|
|
}
|
|
end
|
|
|
|
-- Return a list of minimum supported versions of the configuration file format
|
|
-- return one entry per supported major version.
|
|
function GetCompatibleVersions() return {'1.0.0'} end
|