]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/patches/patch-r209107-clang-vendor-suffix.diff
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / patches / patch-r209107-clang-vendor-suffix.diff
1 This patch adds a FreeBSD-specific suffix to clang's version string.  This is
2 usually of the form "(yyyyddmm)", representing the date when the compiler was
3 last updated.
4
5 Introduced here: http://svnweb.freebsd.org/changeset/base/209107
6
7 Index: 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