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
|
match = true
|
||||||
break
|
break
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
if match then
|
if match then
|
||||||
local injections = { '-p:UseSharedCompilation=false' }
|
|
||||||
if needsSeparator then
|
|
||||||
table.insert(injections, '--')
|
|
||||||
end
|
|
||||||
return {
|
return {
|
||||||
order = ORDER_REPLACE,
|
order = ORDER_REPLACE,
|
||||||
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, injections)
|
invocation = BuildExtractorInvocation(id, compilerPath, compilerPath, compilerArguments, nil, { '-p:UseSharedCompilation=false' })
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user