Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depend on any other modules or PCH files.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2013-03-20 16:59:53 +00:00
Родитель 63fd408a61
Коммит 2bf383d6f5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1277,7 +1277,7 @@ void ASTWriter::WriteInputFiles(SourceManager &SourceMgr,
// detecting whether the system headers may have changed, because it is too
// expensive to stat() all of the system headers.
FileManager &FileMgr = SourceMgr.getFileManager();
if (!HSOpts.Sysroot.empty()) {
if (!HSOpts.Sysroot.empty() && !Chain) {
llvm::SmallString<128> SDKSettingsFileName(HSOpts.Sysroot);
llvm::sys::path::append(SDKSettingsFileName, "SDKSettings.plist");
if (const FileEntry *SDKSettingsFile = FileMgr.getFile(SDKSettingsFileName)) {