From 7efb8af368309b5a2e5f9fa4df6da136d1c5ac54 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 20 May 2013 23:17:08 +0000 Subject: 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 --- lib/Frontend/CompilerInvocation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Frontend/CompilerInvocation.cpp') 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); } -- cgit v1.2.3