mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Don't append a dot on platforms which don't use exe suffixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6674b77ada
commit
d4589a3f58
@ -47,7 +47,9 @@ sys::Path llvm::FindExecutable(const std::string &ExeName,
|
||||
|
||||
if (!Result.isEmpty()) {
|
||||
Result.appendComponent(ExeName);
|
||||
Result.appendSuffix(sys::Path::GetEXESuffix());
|
||||
StringRef EXESuffix = sys::Path::GetEXESuffix();
|
||||
if (!EXESuffix.empty())
|
||||
Result.appendSuffix(EXESuffix);
|
||||
}
|
||||
|
||||
return Result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user