[llvm] Revert "[llvm] Include LLVM_REPOSITORY and LLVM_REVISION in tool version" (PR #85879)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 17:16:39 PDT 2024
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/85879
Reverts llvm/llvm-project#84990 because this causes a full rebuild after the commit hash changes.
>From 8ca9b987b47584519a5b370de8d97c1284ac7aff Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Tue, 19 Mar 2024 17:16:21 -0700
Subject: [PATCH] =?UTF-8?q?Revert=20"[llvm]=20Include=20LLVM=5FREPOSITORY?=
=?UTF-8?q?=20and=20LLVM=5FREVISION=20in=20tool=20version=20(#84=E2=80=A6"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit 6885810e7de283ee8d3c8fc328a98544970b3db6.
---
llvm/lib/Support/CMakeLists.txt | 3 ---
llvm/lib/Support/CommandLine.cpp | 11 +----------
2 files changed, 1 insertion(+), 13 deletions(-)
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