forked from OSchip/llvm-project
parent
d6aa0ec737
commit
62fa2732b9
|
@ -25,6 +25,7 @@ class HostInfoAndroid : public HostInfoLinux
|
|||
|
||||
protected:
|
||||
static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64);
|
||||
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
|
||||
};
|
||||
|
||||
} // end of namespace lldb_private
|
||||
|
|
|
@ -40,7 +40,7 @@ class HostInfoLinux : public HostInfoPosix
|
|||
static FileSpec GetProgramFileSpec();
|
||||
|
||||
protected:
|
||||
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
|
||||
static bool ComputeSharedLibraryDirectory(FileSpec &file_spec);
|
||||
static bool ComputeSystemPluginsDirectory(FileSpec &file_spec);
|
||||
static bool ComputeUserPluginsDirectory(FileSpec &file_spec);
|
||||
static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64);
|
||||
|
|
|
@ -30,6 +30,13 @@ HostInfoAndroid::ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arc
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
HostInfoAndroid::ComputeSupportExeDirectory(FileSpec &file_spec)
|
||||
{
|
||||
file_spec.GetDirectory() = HostInfoLinux::GetProgramFileSpec().GetDirectory();
|
||||
return (bool)file_spec.GetDirectory();
|
||||
}
|
||||
|
||||
FileSpec
|
||||
HostInfoAndroid::GetDefaultShell()
|
||||
{
|
||||
|
|
|
@ -222,10 +222,12 @@ HostInfoLinux::GetProgramFileSpec()
|
|||
}
|
||||
|
||||
bool
|
||||
HostInfoLinux::ComputeSupportExeDirectory(FileSpec &file_spec)
|
||||
HostInfoLinux::ComputeSharedLibraryDirectory(FileSpec &file_spec)
|
||||
{
|
||||
if (HostInfoPosix::ComputeSharedLibraryDirectory(file_spec))
|
||||
return true;
|
||||
file_spec.GetDirectory() = GetProgramFileSpec().GetDirectory();
|
||||
return static_cast<bool>(file_spec.GetDirectory());
|
||||
return (bool)file_spec.GetDirectory();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue