mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Do not recognize 'run' as supported dotnet command for tracing.
This commit is contained in:
@@ -36,26 +36,12 @@ function RegisterExtractorPack(id)
|
||||
match = true
|
||||
break
|
||||
end
|
||||
if arg == 'run' then
|
||||
-- for `dotnet run`, we need to make sure that `-p:UseSharedCompilation=false` is
|
||||
-- not passed in as an argument to the program that is run
|
||||
match = true
|
||||
needsSeparator = true
|
||||
end
|
||||
end
|
||||
if arg == '--' then
|
||||
needsSeparator = false
|
||||
break
|
||||
end
|
||||
end
|
||||
if match then
|
||||
local injections = { '-p:UseSharedCompilation=false' }
|
||||
if needsSeparator then
|
||||
table.insert(injections, '--')
|
||||
end
|
||||
return {
|
||||
order = ORDER_REPLACE,
|
||||
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, injections)
|
||||
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, { '-p:UseSharedCompilation=false' })
|
||||
}
|
||||
end
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user