Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depen...
authorDouglas Gregor <dgregor@apple.com>
Wed, 20 Mar 2013 16:59:53 +0000 (16:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 20 Mar 2013 16:59:53 +0000 (16:59 +0000)
llvm-svn: 177542

clang/lib/Serialization/ASTWriter.cpp

index 08e8afd..de5e6e0 100644 (file)
@@ -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)) {