Fix prependMainExecutablePath for LLVM 3.4.

This commit is contained in:
David Nadlinger
2013-10-08 17:56:10 +02:00
parent 7226f005b7
commit 7b8a85a8df

View File

@@ -126,7 +126,10 @@ static std::string prependMainExecutablePath(const std::string &ExeName,
if (!Result.empty()) {
sys::path::append(Result, ExeName);
sys::path::append(Result, getEXESuffix());
// Do not use path::append here, this is not a path component before which
// to insert the path seperator.
Result.append(getEXESuffix());
}
return Result.str();