mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update Lua tracing configs.
This commit is contained in:
committed by
GitHub
parent
629e90f14b
commit
3836d1550a
@@ -3,10 +3,14 @@ function RegisterExtractorPack(id)
|
||||
'Semmle.Extraction.CSharp.Driver'
|
||||
if OperatingSystem == 'windows' then extractor = extractor .. '.exe' end
|
||||
local windowsMatchers = {
|
||||
CreatePatternMatcher({'^dotnet%.exe$'}, MatchCompilerName, extractor,
|
||||
{prepend = {'--dotnetexec', '--cil'}}),
|
||||
CreatePatternMatcher({'^dotnet%.exe$'}, MatchCompilerName, extractor, {
|
||||
prepend = {'--dotnetexec', '--cil'},
|
||||
order = ORDER_BEFORE
|
||||
}),
|
||||
CreatePatternMatcher({'^csc.*%.exe$'}, MatchCompilerName, extractor, {
|
||||
prepend = {'--compiler', '"${compiler}"', '--cil'}
|
||||
prepend = {'--compiler', '"${compiler}"', '--cil'},
|
||||
order = ORDER_BEFORE
|
||||
|
||||
}),
|
||||
CreatePatternMatcher({'^fakes.*%.exe$', 'moles.*%.exe'},
|
||||
MatchCompilerName, nil, {trace = false})
|
||||
@@ -14,23 +18,28 @@ function RegisterExtractorPack(id)
|
||||
local posixMatchers = {
|
||||
CreatePatternMatcher({'^mcs%.exe$', '^csc%.exe$'}, MatchCompilerName,
|
||||
extractor, {
|
||||
prepend = {'--compiler', '"${compiler}"', '--cil'}
|
||||
prepend = {'--compiler', '"${compiler}"', '--cil'},
|
||||
order = ORDER_BEFORE
|
||||
|
||||
}),
|
||||
CreatePatternMatcher({'^mono', '^dotnet$'}, MatchCompilerName,
|
||||
extractor, {prepend = {'--dotnetexec', '--cil'}}),
|
||||
function(compilerName, compilerPath, compilerArguments, _languageId)
|
||||
extractor, {
|
||||
prepend = {'--dotnetexec', '--cil'},
|
||||
order = ORDER_BEFORE
|
||||
}), function(compilerName, compilerPath, compilerArguments, _languageId)
|
||||
if MatchCompilerName('^msbuild$', compilerName, compilerPath,
|
||||
compilerArguments) or
|
||||
MatchCompilerName('^xbuild$', compilerName, compilerPath,
|
||||
compilerArguments) then
|
||||
return {
|
||||
replace = true,
|
||||
invocations = {
|
||||
BuildExtractorInvocation(id, compilerPath, compilerPath,
|
||||
compilerArguments, nil, {
|
||||
'/p:UseSharedCompilation=false'
|
||||
})
|
||||
}
|
||||
order = ORDER_REPLACE,
|
||||
invocation = BuildExtractorInvocation(id, compilerPath,
|
||||
compilerPath,
|
||||
compilerArguments,
|
||||
nil, {
|
||||
'/p:UseSharedCompilation=false'
|
||||
})
|
||||
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user