clang_debian_version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
===================================================================

Gbp-Pq: Name 19-clang_debian_version.patch

clang/lib/Basic/Version.cpp

index af3118b0f6da4593503e5c41453269a38b080006..3c97278f7222e621464f4d59dab443a464b72d08 100644 (file)
@@ -14,6 +14,7 @@
 #include "clang/Basic/LLVM.h"
 #include "clang/Config/config.h"
 #include "llvm/Support/raw_ostream.h"
+#include "clang/Debian/debian_path.h"
 #include <cstdlib>
 #include <cstring>
 
@@ -95,7 +96,7 @@ std::string getClangToolFullVersion(StringRef ToolName) {
 #ifdef CLANG_VENDOR
   OS << CLANG_VENDOR;
 #endif
-  OS << ToolName << " version " CLANG_VERSION_STRING;
+  OS << ToolName << " version " CLANG_VERSION_STRING "-" DEB_PATCHSETVERSION;
 
   std::string repo = getClangFullRepositoryVersion();
   if (!repo.empty()) {