From 7c10f3e76bc08b4319fa78d230367d19024dfef6 Mon Sep 17 00:00:00 2001 From: Cornelius Riemenschneider Date: Tue, 10 May 2022 14:38:53 +0000 Subject: [PATCH] C#: Lua tracing config: Use API function. --- csharp/tools/tracing-config.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/csharp/tools/tracing-config.lua b/csharp/tools/tracing-config.lua index 77d69beb6b15..f0b7b67f46dd 100644 --- a/csharp/tools/tracing-config.lua +++ b/csharp/tools/tracing-config.lua @@ -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