clang_debian_version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 25 Jun 2022 07:56:23 +0000 (08:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 25 Jun 2022 07:56:23 +0000 (08:56 +0100)
===================================================================

Gbp-Pq: Name 19-clang_debian_version.patch

clang/lib/Basic/Version.cpp

index e205da7adec1d8ea569335d62bb407ae1cc3893b..0c1f36037a85fb110730802c07a5d7e9b69be9fe 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()) {