llvm-toolchain/debian/patches/19-clang_debian_version.patch
2019-08-27 10:23:36 +02:00

22 lines
848 B
Diff

Index: llvm-toolchain-snapshot_10~svn370025/clang/lib/Basic/Version.cpp
===================================================================
--- llvm-toolchain-snapshot_10~svn370025.orig/clang/lib/Basic/Version.cpp
+++ llvm-toolchain-snapshot_10~svn370025/clang/lib/Basic/Version.cpp
@@ -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>
@@ -124,7 +125,7 @@ std::string getClangToolFullVersion(Stri
#ifdef CLANG_VENDOR
OS << CLANG_VENDOR;
#endif
- OS << ToolName << " version " CLANG_VERSION_STRING " "
+ OS << ToolName << " version " CLANG_VERSION_STRING "-" DEB_PATCHSETVERSION " "
<< getClangFullRepositoryVersion();
// If vendor supplied, include the base LLVM version as well.