mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 20:54:40 +08:00
Use hard links to link sysroot files within ModuleCache.
http://reviews.llvm.org/D9587 llvm-svn: 236917
This commit is contained in:
@@ -95,6 +95,15 @@ FileSystem::GetFileExists(const FileSpec &file_spec)
|
||||
return file_spec.Exists();
|
||||
}
|
||||
|
||||
Error
|
||||
FileSystem::Hardlink(const char *linkname, const char *target)
|
||||
{
|
||||
Error error;
|
||||
if (!::CreateHardLink(linkname, target, nullptr))
|
||||
error.SetError(::GetLastError(), lldb::eErrorTypeWin32);
|
||||
return error;
|
||||
}
|
||||
|
||||
Error
|
||||
FileSystem::Symlink(const char *linkname, const char *target)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user