mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Poor mans quoting of arguments on windows.
This commit is contained in:
@@ -84,6 +84,10 @@ function RegisterExtractorPack(id)
|
|||||||
dotnetRunNeedsSeparator = false
|
dotnetRunNeedsSeparator = false
|
||||||
dotnetRunInjectionIndex = i
|
dotnetRunInjectionIndex = i
|
||||||
end
|
end
|
||||||
|
-- if we encounter a whitespace, we explicitly need to quote the argument.
|
||||||
|
if OperatingSystem == 'windows' and arg:match('%s') then
|
||||||
|
argv[i] = '"' .. arg .. '"'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if match then
|
if match then
|
||||||
local injections = { '-p:UseSharedCompilation=false', '-p:EmitCompilerGeneratedFiles=true' }
|
local injections = { '-p:UseSharedCompilation=false', '-p:EmitCompilerGeneratedFiles=true' }
|
||||||
|
|||||||
Reference in New Issue
Block a user