mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 04:14:03 +08:00
[driver] For consistency, handle all shell special characters handled by the
quoting code. llvm-svn: 141205
This commit is contained in:
@@ -72,7 +72,7 @@ const DerivedArgList &Compilation::getArgsForToolChain(const ToolChain *TC,
|
||||
|
||||
static bool needsQuote(const char *s) {
|
||||
for (const char *c = s; *c; ++c)
|
||||
if (*c == ' ')
|
||||
if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$')
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user