[llvm] 595280a - Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version" (#85879)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 17:16:50 PDT 2024
Author: Jonas Devlieghere
Date: 2024-03-19T17:16:47-07:00
New Revision: 595280af561fdba156efbdd654ed4076855aac9c
URL: https://github.com/llvm/llvm-project/commit/595280af561fdba156efbdd654ed4076855aac9c
DIFF: https://github.com/llvm/llvm-project/commit/595280af561fdba156efbdd654ed4076855aac9c.diff
LOG: Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version" (#85879)
Reverts llvm/llvm-project#84990 because this causes a full rebuild after
the commit hash changes.
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-commits
mailing list