Don't make a path absolute, just check if it is.
This commit is contained in:
parent
eb32d6eae4
commit
bd98283b8c
@ -167,12 +167,8 @@ namespace cling {
|
||||
|
||||
std::string
|
||||
DynamicLibraryManager::lookupLibrary(llvm::StringRef libStem) const {
|
||||
llvm::SmallString<128> Absolute(libStem);
|
||||
llvm::sys::fs::make_absolute(Absolute);
|
||||
bool isAbsolute = libStem == Absolute;
|
||||
|
||||
// If it is an absolute path, don't try iterate over the paths.
|
||||
if (isAbsolute) {
|
||||
if (llvm::sys::path::is_absolute(libStem)) {
|
||||
if (isSharedLib(libStem))
|
||||
return normalizePath(libStem);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user