Merge pull request #491 from klickverbot/ldmd-3.4

Fix prependMainExecutablePath for LLVM 3.4.
This commit is contained in:
David Nadlinger
2013-10-08 09:33:23 -07:00

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();