mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 22:03:14 +01:00
Fix prependMainExecutablePath for LLVM 3.4.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user