From 2de547ee0f5a2ebd61fc1aa8932042043bbf680f Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 12 Jun 2010 15:13:36 +0000 Subject: Do the branding right this time. I've looked at other places in the source tree where CLANG_VENDOR is used and I suspect it might not be safe to use newlines here. CLANG_VENDOR should just be defined to "FreeBSD ", just like the latest Clang preview in OS X uses "Apple ". Properly use SVN_REVISION to define it to the imported revision of Clang. I do want to have a date in there, so slightly modify the code to support CLANG_VENDOR_SUFFIX. --- contrib/llvm/tools/clang/lib/Basic/Version.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/llvm/tools/clang/lib/Basic/Version.cpp') diff --git a/contrib/llvm/tools/clang/lib/Basic/Version.cpp b/contrib/llvm/tools/clang/lib/Basic/Version.cpp index e0c2336..86c5e55 100644 --- a/contrib/llvm/tools/clang/lib/Basic/Version.cpp +++ b/contrib/llvm/tools/clang/lib/Basic/Version.cpp @@ -70,6 +70,9 @@ std::string getClangFullVersion() { #endif OS << "clang version " CLANG_VERSION_STRING " (" << getClangFullRepositoryVersion() << ')'; +#ifdef CLANG_VENDOR_SUFFIX + OS << CLANG_VENDOR_SUFFIX; +#endif return OS.str(); } -- cgit v1.1