[cfe-commits] r83652 - in /cfe/trunk/lib/Driver: Driver.cpp Makefile
Mike Stump
mrs at apple.com
Fri Oct 9 10:31:54 PDT 2009
Author: mrs
Date: Fri Oct 9 12:31:54 2009
New Revision: 83652
URL: http://llvm.org/viewvc/llvm-project?rev=83652&view=rev
Log:
Allow customization for the version line.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
cfe/trunk/lib/Driver/Makefile
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=83652&r1=83651&r2=83652&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Oct 9 12:31:54 2009
@@ -412,6 +412,9 @@
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())
Modified: cfe/trunk/lib/Driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Makefile?rev=83652&r1=83651&r2=83652&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Makefile (original)
+++ cfe/trunk/lib/Driver/Makefile Fri Oct 9 12:31:54 2009
@@ -13,5 +13,8 @@
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
More information about the cfe-commits
mailing list