[PATCH] D18159: [CMake] Add PACKAGE_VENDOR for customizing version output
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 11:12:55 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL263566: [CMake] Add PACKAGE_VENDOR for customizing version output (authored by cbieneman).
Changed prior to commit:
http://reviews.llvm.org/D18159?vs=50649&id=50754#toc
Repository:
rL LLVM
http://reviews.llvm.org/D18159
Files:
llvm/trunk/include/llvm/Config/config.h.cmake
llvm/trunk/lib/Support/CommandLine.cpp
Index: llvm/trunk/include/llvm/Config/config.h.cmake
===================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake
+++ llvm/trunk/include/llvm/Config/config.h.cmake
@@ -537,6 +537,9 @@
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}"
+/* Define to the vendor of this package. */
+#cmakedefine PACKAGE_VENDOR "${PACKAGE_VENDOR}"
+
/* Define as the return type of signal handlers (`int' or `void'). */
#cmakedefine RETSIGTYPE ${RETSIGTYPE}
Index: llvm/trunk/lib/Support/CommandLine.cpp
===================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp
+++ llvm/trunk/lib/Support/CommandLine.cpp
@@ -1756,8 +1756,12 @@
public:
void print() {
raw_ostream &OS = outs();
- OS << "LLVM (http://llvm.org/):\n"
- << " " << PACKAGE_NAME << " version " << PACKAGE_VERSION;
+#ifdef PACKAGE_VENDOR
+ OS << PACKAGE_VENDOR << " ";
+#else
+ OS << "LLVM (http://llvm.org/):\n ";
+#endif
+ OS << PACKAGE_NAME << " version " << PACKAGE_VERSION;
#ifdef LLVM_VERSION_INFO
OS << " " << LLVM_VERSION_INFO;
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18159.50754.patch
Type: text/x-patch
Size: 1181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160315/6cc85d70/attachment.bin>
More information about the llvm-commits
mailing list