Merge pull request #740 from github/criemen/lua-tracing-config

Update Lua tracing config.
This commit is contained in:
Cornelius Riemenschneider
2022-05-18 01:03:16 +02:00
committed by GitHub

View File

@@ -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