Merge pull request #606 from github/criemen/update-tracing-config

Update tracing-config.lua to newest API.
This commit is contained in:
Chris Smowton
2021-11-17 10:49:20 +00:00
committed by GitHub

View File

@@ -1,18 +1,14 @@
function RegisterExtractorPack()
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
if OperatingSystem == 'windows' then
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
end
local matchers = {
CreatePatternMatcher('go',
{'^go-autobuilder$', '^go-autobuilder%.exe$'},
return {
CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'},
MatchCompilerName, nil, {trace = false}),
CreatePatternMatcher('go', {'^go$', '^go%.exe$'}, MatchCompilerName,
CreatePatternMatcher({'^go$', '^go%.exe$'}, MatchCompilerName,
goExtractor, {prepend = {'--mimic', '${compiler}'}})
}
RegisterLanguage('go', matchers)
end
-- Return a list of minimum supported versions of the configuration file format