зеркало из https://github.com/github/codeql-go.git
Update Lua tracing config.
This commit is contained in:
Родитель
0b0161f261
Коммит
3b4d04dcc4
|
@ -1,14 +1,27 @@
|
|||
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}'}})
|
||||
local patterns = {
|
||||
CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil,
|
||||
{trace = false}),
|
||||
CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, {
|
||||
prepend = {'--mimic', '${compiler}'},
|
||||
order = ORDER_BEFORE
|
||||
})
|
||||
|
||||
}
|
||||
if OperatingSystem == 'windows' then
|
||||
goExtractor = goExtractor .. 'go-extractor.exe'
|
||||
patterns = {
|
||||
CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName,
|
||||
nil, {trace = false}),
|
||||
CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor,
|
||||
{
|
||||
prepend = {'--mimic', '"${compiler}"'},
|
||||
order = ORDER_BEFORE
|
||||
})
|
||||
}
|
||||
end
|
||||
return patterns
|
||||
end
|
||||
|
||||
-- Return a list of minimum supported versions of the configuration file format
|
||||
|
|
Загрузка…
Ссылка в новой задаче