clang_debian_version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 28 Sep 2021 10:06:50 +0000 (11:06 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 28 Sep 2021 10:06:50 +0000 (11:06 +0100)
===================================================================

Gbp-Pq: Name 19-clang_debian_version.patch

clang/lib/Basic/Version.cpp

index 286107cab9d7b0594b30fade589bcc0cdfaf75b2..034966e64b1b6b4cf3dc815598a21473edc86376 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>
 
@@ -97,7 +98,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()) {