Add port of the existing compiler-tracing.spec files to the new Lua tracing infrastructure.

This commit is contained in:
Cornelius Riemenschneider
2021-11-08 11:26:48 +01:00
parent 6d90b81655
commit 17a9dbfb62
2 changed files with 21 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ CODEQL_PLATFORM = osx64
endif
endif
CODEQL_TOOLS = $(addprefix codeql-tools/,autobuild.cmd autobuild.sh pre-finalize.cmd pre-finalize.sh index.cmd index.sh linux64 osx64 win64)
CODEQL_TOOLS = $(addprefix codeql-tools/,autobuild.cmd autobuild.sh pre-finalize.cmd pre-finalize.sh index.cmd index.sh linux64 osx64 win64 tracing-config.lua)
EXTRACTOR_PACK_OUT = build/codeql-extractor-go

View File

@@ -0,0 +1,20 @@
function RegisterExtractorPack()
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
if OperatingSystem == 'windows' then
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
end
local matchers = {
CreatePatternMatcher('go',
{'^go-autobuilder$', '^go-autobuilder%.exe$'},
MatchCompilerName, nil, {trace = false}),
CreatePatternMatcher('go', {'^go$', '^go%.exe$'}, MatchCompilerName,
goExtractor, {prepend = {'--mimic', '${compiler}'}})
}
RegisterLanguage('go', matchers)
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