mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[clang] Use the VFS to check the system framework marker (#160946)
This PR uses the VFS/`FileManager` to check the system framework marker instead of going straight to the real file system. This matches the behavior of other input files of the compiler.
This commit is contained in:
@@ -672,9 +672,8 @@ OptionalFileEntryRef DirectoryLookup::DoFrameworkLookup(
|
||||
if (getDirCharacteristic() == SrcMgr::C_User) {
|
||||
SmallString<1024> SystemFrameworkMarker(FrameworkName);
|
||||
SystemFrameworkMarker += ".system_framework";
|
||||
if (llvm::sys::fs::exists(SystemFrameworkMarker)) {
|
||||
if (FileMgr.getOptionalFileRef(SystemFrameworkMarker))
|
||||
CacheEntry.IsUserSpecifiedSystemFramework = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user