mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Add port of the existing compiler-tracing.spec files to the new Lua tracing infrastructure.
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
|
||||
20
codeql-tools/tracing-config.lua
Normal file
20
codeql-tools/tracing-config.lua
Normal 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
|
||||
Reference in New Issue
Block a user