[Dependency Scan] Remove redundant recombination of arguments in 'initCompilerInstanceForScan' into a string, before being re-parsed.

This does not seem to serve a purpose other than corrupting arguments with whitespaces - they get merged into one large string where the whitespace boundary between arguments and whitespaces within arguments are blurred.

Part of rdar://98985453
This commit is contained in:
Artem Chikin
2022-08-22 13:29:03 -07:00
parent f680ddc4f7
commit baec3154a0
2 changed files with 8 additions and 17 deletions

View File

@@ -157,11 +157,11 @@ export *\n\
llvm::sys::path::append(StdLibDir, getPlatformNameForTriple(Target));
std::vector<std::string> CommandStrArr = {
std::string("'") + TestPathStr + std::string("'"),
std::string("-I ") + std::string("'") + SwiftDirPath + std::string("'"),
std::string("-I ") + std::string("'") + CHeadersDirPath + std::string("'"),
std::string("-I ") + std::string("'") + StdLibDir.str().str() + std::string("'"),
std::string("-I ") + std::string("'") + ShimsLibDir.str().str() + std::string("'")
TestPathStr,
std::string("-I ") + SwiftDirPath,
std::string("-I ") + CHeadersDirPath,
std::string("-I ") + StdLibDir.str().str(),
std::string("-I ") + ShimsLibDir.str().str(),
};
// On Windows we need to add an extra escape for path separator characters because otherwise