[Lldb-commits] [PATCH] D39429: Use LLVM version string

Stephane Sezer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 30 12:25:54 PDT 2017


sas created this revision.

macOS builds of LLDB use the bundle version from
`tools/driver/lldb-Info.plist`. That file hasn't been updated since the 4.0
release so the version we print provides no value. I also think that even if it
were up to date, that number has no meaning and displaying the version from the
LLVM tree is more valuable.

I know that Apple folks have some form of override for the clang version to
match the Xcode version, so it'd make sense for them to do the same for LLDB.


https://reviews.llvm.org/D39429

Files:
  source/lldb.cpp


Index: source/lldb.cpp
===================================================================
--- source/lldb.cpp
+++ source/lldb.cpp
@@ -47,13 +47,9 @@
   // as the clang tool.
   static std::string g_version_str;
   if (g_version_str.empty()) {
-
-#ifdef LLDB_VERSION_STRING
-    g_version_str += EXPAND_AND_QUOTE(LLDB_VERSION_STRING);
-#else
     g_version_str += "lldb version ";
     g_version_str += CLANG_VERSION_STRING;
-#endif
+
     const char *lldb_repo = GetLLDBRepository();
     const char *lldb_rev = GetLLDBRevision();
     if (lldb_repo || lldb_rev) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39429.120868.patch
Type: text/x-patch
Size: 566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171030/b3178c9d/attachment.bin>


More information about the lldb-commits mailing list