patch-r209107-clang-vendor-suffix.diff revision 269012
1This patch adds a FreeBSD-specific suffix to clang's version string.  This is
2usually of the form "(yyyyddmm)", representing the date when the compiler was
3last updated.
4
5Introduced here: http://svnweb.freebsd.org/changeset/base/209107
6
7Index: tools/clang/lib/Basic/Version.cpp
8===================================================================
9--- tools/clang/lib/Basic/Version.cpp
10+++ tools/clang/lib/Basic/Version.cpp
11@@ -124,8 +124,10 @@ std::string getClangFullVersion() {
12   OS << "clang version " CLANG_VERSION_STRING " "
13      << getClangFullRepositoryVersion();
14 
15+#ifdef CLANG_VENDOR_SUFFIX
16+  OS << CLANG_VENDOR_SUFFIX;
17+#elif defined(CLANG_VENDOR)
18   // If vendor supplied, include the base LLVM version as well.
19-#ifdef CLANG_VENDOR
20   OS << " (based on LLVM " << PACKAGE_VERSION << ")";
21 #endif
22 
23