diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-20 23:17:08 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-20 23:17:08 +0000 |
| commit | 7efb8af368309b5a2e5f9fa4df6da136d1c5ac54 (patch) | |
| tree | 8ee7c9482b8b4a0b3cf5f1d1fba4281ecfd63065 /lib/Frontend/CompilerInvocation.cpp | |
| parent | fc46ebc2b1345723a894ae352cfb206c1d930295 (diff) | |
| download | clang-7efb8af368309b5a2e5f9fa4df6da136d1c5ac54.tar.gz clang-7efb8af368309b5a2e5f9fa4df6da136d1c5ac54.tar.bz2 clang-7efb8af368309b5a2e5f9fa4df6da136d1c5ac54.tar.xz | |
Move two Darwin-specific hacks into #ifdef __APPLE__. These were stat'ing
nonexistent Darwin-specific files on every module build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 6af3663001..3d82d7a3a6 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1690,6 +1690,7 @@ std::string CompilerInvocation::getModuleHash() const { hsOpts.UseStandardCXXIncludes, hsOpts.UseLibcxx); +#ifdef __APPLE__ // Darwin-specific hack: if we have a sysroot, use the contents and // modification time of // $sysroot/System/Library/CoreServices/SystemVersion.plist @@ -1710,6 +1711,7 @@ std::string CompilerInvocation::getModuleHash() const { code = hash_combine(code, statBuf.st_mtime); } } +#endif return llvm::APInt(64, code).toString(36, /*Signed=*/false); } |
