forked from OSchip/llvm-project
parent
8c7b78767a
commit
7010ef34d5
|
@ -40,8 +40,11 @@ FileSpec HostInfoAndroid::ResolveLibraryPath(const std::string &module_path,
|
|||
static const char *const default_lib64_path[] = {"/vendor/lib64",
|
||||
"/system/lib64", nullptr};
|
||||
|
||||
if (module_path.empty() || module_path[0] == '/')
|
||||
return FileSpec(module_path.c_str(), true);
|
||||
if (module_path.empty() || module_path[0] == '/') {
|
||||
FileSpec file_spec(module_path.c_str());
|
||||
FileSystem::Instance().Resolve(file_spec);
|
||||
return file_spec;
|
||||
}
|
||||
|
||||
SmallVector<StringRef, 4> ld_paths;
|
||||
|
||||
|
|
Loading…
Reference in New Issue