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