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
code = hash_combine(code, statBuf.st_mtime);
}
}
-#endif
return llvm::APInt(64, code).toString(36, /*Signed=*/false);
}
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");
SortedFiles.push_front(Entry);
}
}
-#endif
unsigned UserFilesNum = 0;
// Write out all of the input files.