Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions llvm/lib/Support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ add_llvm_component_library(LLVMSupport
${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
${Backtrace_INCLUDE_DIRS}

DEPENDS
llvm_vcsrevision_h

LINK_LIBS
${system_libs} ${imported_libs} ${delayload_flags}

Expand Down
11 changes: 10 additions & 1 deletion llvm/lib/Support/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/VCSRevision.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdlib>
Expand Down Expand Up @@ -2538,7 +2539,15 @@ class VersionPrinter {
#else
OS << "LLVM (http://llvm.org/):\n ";
#endif
OS << PACKAGE_NAME << " version " << PACKAGE_VERSION << "\n ";
OS << PACKAGE_NAME << " version " << PACKAGE_VERSION;
#ifdef LLVM_REPOSITORY
OS << " (" << LLVM_REPOSITORY;
#ifdef LLVM_REVISION
OS << ' ' << LLVM_REVISION;
#endif
OS << ')';
#endif
OS << "\n ";
#if LLVM_IS_DEBUG_BUILD
OS << "DEBUG build";
#else
Expand Down