Allow customization for the version line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mike Stump 2009-10-09 17:31:54 +00:00
Родитель ad3607da8a
Коммит 5b8cdb524f
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -412,6 +412,9 @@ void Driver::PrintHelp(bool ShowHidden) const {
void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const { void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const {
// FIXME: The following handlers should use a callback mechanism, we don't // FIXME: The following handlers should use a callback mechanism, we don't
// know what the client would like to do. // know what the client would like to do.
#ifdef CLANG_VENDOR
OS << CLANG_VENDOR;
#endif
OS << "clang version " CLANG_VERSION_STRING " (" OS << "clang version " CLANG_VERSION_STRING " ("
<< getClangSubversionPath(); << getClangSubversionPath();
if (unsigned Revision = getClangSubversionRevision()) if (unsigned Revision = getClangSubversionRevision())

Просмотреть файл

@ -13,5 +13,8 @@ BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti CXXFLAGS = -fno-rtti
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
ifdef CLANG_VENDOR
CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
endif
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common