]> granicus.if.org Git - clang/commit
<rdar://problem/13426257> Introduce SDKSettings.plist as an input file dependency...
authorDouglas Gregor <dgregor@apple.com>
Fri, 15 Mar 2013 22:15:07 +0000 (22:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 15 Mar 2013 22:15:07 +0000 (22:15 +0000)
commit4a18c3b25a2d7eb7f770ce91ee5e14433b2a1cb6
tree05f938df7bed796c64ae56c7a4ed72821a7e68d9
parent9de50947ba381561a5236b3c878c83e4bb8c1088
<rdar://problem/13426257> Introduce SDKSettings.plist as an input file dependency for PCH/modules.

When we're building a precompiled header or module against an SDK on
Darwin, there will be a file SDKSettings.plist in the sysroot. Since
stat()'ing every system header on which a module or PCH file depends
is performance suicide, we instead stat() just SDKSettings.plist. This
hack works well on Darwin; it's unclear how we want to handle this on
other platforms. If there is a canonical file, we should use it; if
not, we either have to take the performance hit of stat()'ing system
headers repeatedly or roll the dice by not checking anything.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177194 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTWriter.h
lib/Serialization/ASTWriter.cpp