C#: Lua tracing config: Use API function.

This commit is contained in:
Cornelius Riemenschneider
2022-05-10 14:38:53 +00:00
committed by GitHub
parent 40503aa368
commit 7c10f3e76b

View File

@@ -1,4 +1,4 @@
function RegisterExtractorPack()
function RegisterExtractorPack(id)
local extractor = GetPlatformToolsDirectory() ..
'Semmle.Extraction.CSharp.Driver'
if OperatingSystem == 'windows' then extractor = extractor .. '.exe' end
@@ -26,14 +26,10 @@ function RegisterExtractorPack()
return {
replace = true,
invocations = {
{
path = compilerPath,
transformedArguments = {
nativeArgumentPointer = compilerArguments['nativeArgumentPointer'],
append = {'/p:UseSharedCompilation=false'},
prepend = {}
}
}
BuildExtractorInvocation(id, compilerPath, compilerPath,
compilerArguments, nil, {
'/p:UseSharedCompilation=false'
})
}
}
end