[llvm-branch-commits] [llvm] 8ca9b98 - Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version (#84…"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 19 17:16:24 PDT 2024


Author: Jonas Devlieghere
Date: 2024-03-19T17:16:21-07:00
New Revision: 8ca9b987b47584519a5b370de8d97c1284ac7aff

URL: https://github.com/llvm/llvm-project/commit/8ca9b987b47584519a5b370de8d97c1284ac7aff
DIFF: https://github.com/llvm/llvm-project/commit/8ca9b987b47584519a5b370de8d97c1284ac7aff.diff

LOG: Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version (#84…"

This reverts commit 6885810e7de283ee8d3c8fc328a98544970b3db6.

Added: 
    

Modified: 
    llvm/lib/Support/CMakeLists.txt
    llvm/lib/Support/CommandLine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index da2a4b4cdec568..e18beddf7bc5b7 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -288,9 +288,6 @@ 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}
 

diff  --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 42dbc4de200303..c076ae8b843179 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -39,7 +39,6 @@
 #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>
@@ -2539,15 +2538,7 @@ class VersionPrinter {
 #else
     OS << "LLVM (http://llvm.org/):\n  ";
 #endif
-    OS << PACKAGE_NAME << " version " << PACKAGE_VERSION;
-#ifdef LLVM_REPOSITORY
-    OS << " (" << LLVM_REPOSITORY;
-#ifdef LLVM_REVISION
-    OS << ' ' << LLVM_REVISION;
-#endif
-    OS << ')';
-#endif
-    OS << "\n  ";
+    OS << PACKAGE_NAME << " version " << PACKAGE_VERSION << "\n  ";
 #if LLVM_IS_DEBUG_BUILD
     OS << "DEBUG build";
 #else


        


More information about the llvm-branch-commits mailing list