C#: Update tracer arguments.

This commit is contained in:
Michael Nebel
2022-08-19 13:08:04 +02:00
parent da214c89d6
commit 27d1008171
4 changed files with 4 additions and 10 deletions

View File

@@ -3,12 +3,10 @@
invoke ${config_dir}/Semmle.Extraction.CSharp.Driver
prepend --compiler
prepend "${compiler}"
prepend --cil
**/mono*:
**/dotnet:
invoke ${config_dir}/Semmle.Extraction.CSharp.Driver
prepend --dotnetexec
prepend --cil
**/msbuild:
**/xbuild:
replace yes

View File

@@ -3,12 +3,10 @@
invoke ${config_dir}/Semmle.Extraction.CSharp.Driver
prepend --compiler
prepend "${compiler}"
prepend --cil
**/mono*:
**/dotnet:
invoke ${config_dir}/Semmle.Extraction.CSharp.Driver
prepend --dotnetexec
prepend --cil
**/msbuild:
**/xbuild:
replace yes

View File

@@ -51,7 +51,7 @@ function RegisterExtractorPack(id)
local windowsMatchers = {
DotnetMatcherBuild,
CreatePatternMatcher({ '^csc.*%.exe$' }, MatchCompilerName, extractor, {
prepend = { '--cil', '--compiler', '"${compiler}"' },
prepend = {'--compiler', '"${compiler}"' },
order = ORDER_BEFORE
}),
CreatePatternMatcher({ '^fakes.*%.exe$', 'moles.*%.exe' },
@@ -64,7 +64,7 @@ function RegisterExtractorPack(id)
local seenCompilerCall = false
local argv = NativeArgumentsToArgv(compilerArguments.nativeArgumentPointer)
local extractorArgs = { '--cil', '--compiler' }
local extractorArgs = { '--compiler' }
for _, arg in ipairs(argv) do
if arg:match('csc%.dll$') then
seenCompilerCall = true
@@ -92,7 +92,7 @@ function RegisterExtractorPack(id)
DotnetMatcherBuild,
CreatePatternMatcher({ '^mcs%.exe$', '^csc%.exe$' }, MatchCompilerName,
extractor, {
prepend = { '--cil', '--compiler', '"${compiler}"' },
prepend = { '--compiler', '"${compiler}"' },
order = ORDER_BEFORE
}), function(compilerName, compilerPath, compilerArguments, _languageId)
if MatchCompilerName('^msbuild$', compilerName, compilerPath,
@@ -118,7 +118,7 @@ function RegisterExtractorPack(id)
local seenCompilerCall = false
local argv = compilerArguments.argv
local extractorArgs = { '--cil', '--compiler' }
local extractorArgs = { '--compiler' }
for _, arg in ipairs(argv) do
if arg:match('csc%.dll$') or arg:match('csc%.exe$') or arg:match('mcs%.exe$') then
seenCompilerCall = true

View File

@@ -6,8 +6,6 @@
invoke ${config_dir}\Semmle.Extraction.CSharp.Driver.exe
prepend --compiler
prepend "${compiler}"
prepend --cil
**\dotnet.exe:
invoke ${config_dir}\Semmle.Extraction.CSharp.Driver.exe
prepend --dotnetexec
prepend --cil