Skip to content

Commit 7c10f3e

Browse files
authored
C#: Lua tracing config: Use API function.
1 parent 40503aa commit 7c10f3e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

csharp/tools/tracing-config.lua

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function RegisterExtractorPack()
1+
function RegisterExtractorPack(id)
22
local extractor = GetPlatformToolsDirectory() ..
33
'Semmle.Extraction.CSharp.Driver'
44
if OperatingSystem == 'windows' then extractor = extractor .. '.exe' end
@@ -26,14 +26,10 @@ function RegisterExtractorPack()
2626
return {
2727
replace = true,
2828
invocations = {
29-
{
30-
path = compilerPath,
31-
transformedArguments = {
32-
nativeArgumentPointer = compilerArguments['nativeArgumentPointer'],
33-
append = {'/p:UseSharedCompilation=false'},
34-
prepend = {}
35-
}
36-
}
29+
BuildExtractorInvocation(id, compilerPath, compilerPath,
30+
compilerArguments, nil, {
31+
'/p:UseSharedCompilation=false'
32+
})
3733
}
3834
}
3935
end

0 commit comments

Comments
 (0)