File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,9 @@ add_llvm_component_library(LLVMSupport
279
279
${LLVM_MAIN_INCLUDE_DIR} /llvm/Support
280
280
${Backtrace_INCLUDE_DIRS}
281
281
282
+ DEPENDS
283
+ llvm_vcsrevision_h
284
+
282
285
LINK_LIBS
283
286
${system_libs} ${imported_libs} ${delayload_flags}
284
287
Original file line number Diff line number Diff line change 39
39
#include " llvm/Support/Path.h"
40
40
#include " llvm/Support/Process.h"
41
41
#include " llvm/Support/StringSaver.h"
42
+ #include " llvm/Support/VCSRevision.h"
42
43
#include " llvm/Support/VirtualFileSystem.h"
43
44
#include " llvm/Support/raw_ostream.h"
44
45
#include < cstdlib>
@@ -2544,7 +2545,15 @@ class VersionPrinter {
2544
2545
#else
2545
2546
OS << " LLVM (http://llvm.org/):\n " ;
2546
2547
#endif
2547
- OS << PACKAGE_NAME << " version " << PACKAGE_VERSION << " \n " ;
2548
+ OS << PACKAGE_NAME << " version " << PACKAGE_VERSION;
2549
+ #ifdef LLVM_REPOSITORY
2550
+ OS << " (" << LLVM_REPOSITORY;
2551
+ #ifdef LLVM_REVISION
2552
+ OS << ' ' << LLVM_REVISION;
2553
+ #endif
2554
+ OS << ' )' ;
2555
+ #endif
2556
+ OS << " \n " ;
2548
2557
#if LLVM_IS_DEBUG_BUILD
2549
2558
OS << " DEBUG build" ;
2550
2559
#else
You can’t perform that action at this time.
0 commit comments