summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-03-20 16:59:53 +0000
committerDouglas Gregor <dgregor@apple.com>2013-03-20 16:59:53 +0000
commit2bb719f3a9f6065579aef4e6be18743d99a24eda (patch)
tree76332ed6208642f133e734c9a75f8b916be06d54 /clang/lib/Serialization/ASTWriter.cpp
parent0175461296044bd572559b9a4a5473ddcd411bce (diff)
downloadbcm5719-llvm-2bb719f3a9f6065579aef4e6be18743d99a24eda.tar.gz
bcm5719-llvm-2bb719f3a9f6065579aef4e6be18743d99a24eda.zip
Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depend on any other modules or PCH files.
llvm-svn: 177542
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 08e8afdd0ab..de5e6e0275d 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -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)) {
OpenPOWER on IntegriCloud