r177542 - Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depend on any other modules or PCH files.
Douglas Gregor
dgregor at apple.com
Wed Mar 20 09:59:54 PDT 2013
Author: dgregor
Date: Wed Mar 20 11:59:53 2013
New Revision: 177542
URL: http://llvm.org/viewvc/llvm-project?rev=177542&view=rev
Log:
Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depend on any other modules or PCH files.
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=177542&r1=177541&r2=177542&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Wed Mar 20 11:59:53 2013
@@ -1277,7 +1277,7 @@ void ASTWriter::WriteInputFiles(SourceMa
// 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)) {
More information about the cfe-commits
mailing list