mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user