Skip to content

Commit 415c3d1

Browse files
authored
Merge pull request #740 from github/criemen/lua-tracing-config
Update Lua tracing config.
2 parents 0b0161f + 3b4d04d commit 415c3d1

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

codeql-tools/tracing-config.lua

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
function RegisterExtractorPack()
22
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
3+
local patterns = {
4+
CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil,
5+
{trace = false}),
6+
CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, {
7+
prepend = {'--mimic', '${compiler}'},
8+
order = ORDER_BEFORE
9+
})
10+
11+
}
312
if OperatingSystem == 'windows' then
4-
goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
13+
goExtractor = goExtractor .. 'go-extractor.exe'
14+
patterns = {
15+
CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName,
16+
nil, {trace = false}),
17+
CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor,
18+
{
19+
prepend = {'--mimic', '"${compiler}"'},
20+
order = ORDER_BEFORE
21+
})
22+
}
523
end
6-
return {
7-
CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'},
8-
MatchCompilerName, nil, {trace = false}),
9-
CreatePatternMatcher({'^go$', '^go%.exe$'}, MatchCompilerName,
10-
goExtractor, {prepend = {'--mimic', '${compiler}'}})
11-
}
24+
return patterns
1225
end
1326

1427
-- Return a list of minimum supported versions of the configuration file format

0 commit comments

Comments
 (0)