]> granicus.if.org Git - clang/commitdiff
Allow customization for the version line.
authorMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 17:31:54 +0000 (17:31 +0000)
committerMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 17:31:54 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83652 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp
lib/Driver/Makefile

index ab948552d92361ed168196dd26726432834a3a99..b4693f2ac986bb1436214f76231efe68856078ae 100644 (file)
@@ -412,6 +412,9 @@ void Driver::PrintHelp(bool ShowHidden) const {
 void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const {
   // FIXME: The following handlers should use a callback mechanism, we don't
   // know what the client would like to do.
+#ifdef CLANG_VENDOR
+  OS << CLANG_VENDOR;
+#endif
   OS << "clang version " CLANG_VERSION_STRING " ("
      << getClangSubversionPath();
   if (unsigned Revision = getClangSubversionRevision())
index dbacf8be0141a29f93a220374f9ef25b477ac2c3..4c3ca5ca844650b020b9bb9f862447a166be61a2 100644 (file)
@@ -13,5 +13,8 @@ BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
+ifdef CLANG_VENDOR
+CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
+endif
 
 include $(LEVEL)/Makefile.common