r182333 - Revert r182331, these checks should be based on the target not the host.
Richard Smith
richard-llvm at metafoo.co.uk
Mon May 20 16:40:28 PDT 2013
Author: rsmith
Date: Mon May 20 18:40:27 2013
New Revision: 182333
URL: http://llvm.org/viewvc/llvm-project?rev=182333&view=rev
Log:
Revert r182331, these checks should be based on the target not the host.
Modified:
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=182333&r1=182332&r2=182333&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Mon May 20 18:40:27 2013
@@ -1690,7 +1690,6 @@ std::string CompilerInvocation::getModul
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
@@ -1711,7 +1710,6 @@ std::string CompilerInvocation::getModul
code = hash_combine(code, statBuf.st_mtime);
}
}
-#endif
return llvm::APInt(64, code).toString(36, /*Signed=*/false);
}
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=182333&r1=182332&r2=182333&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Mon May 20 18:40:27 2013
@@ -1279,13 +1279,11 @@ void ASTWriter::WriteInputFiles(SourceMa
SortedFiles.push_front(Entry);
}
- FileManager &FileMgr = SourceMgr.getFileManager();
-
-#ifdef __APPLE__
// If we have an isysroot for a Darwin SDK, include its SDKSettings.plist in
// the set of (non-system) input files. This is simple heuristic for
// 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() && !Chain) {
llvm::SmallString<128> SDKSettingsFileName(HSOpts.Sysroot);
llvm::sys::path::append(SDKSettingsFileName, "SDKSettings.plist");
@@ -1294,7 +1292,6 @@ void ASTWriter::WriteInputFiles(SourceMa
SortedFiles.push_front(Entry);
}
}
-#endif
unsigned UserFilesNum = 0;
// Write out all of the input files.
More information about the cfe-commits
mailing list