[Lldb-commits] [lldb] r295189 - Fix debug build of unit tests

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 15 08:11:51 PST 2017

Author: labath
Date: Wed Feb 15 10:11:51 2017
New Revision: 295189

URL: http://llvm.org/viewvc/llvm-project?rev=295189&view=rev
Fix debug build of unit tests

It turns out listing each library twice is not enough to resolve all
references in a debug build on linux - a number of executables fails to
link with random symbols missing. Increasing the number to three seems
to be enough. The choice of lldbCore to set the multiplicity on is
somewhat arbitrary, but it seems fitting, as it is the biggest layering

Reviewers: beanz

Subscribers: mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D29888


Modified: lldb/trunk/source/Core/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/CMakeLists.txt?rev=295189&r1=295188&r2=295189&view=diff
--- lldb/trunk/source/Core/CMakeLists.txt (original)
+++ lldb/trunk/source/Core/CMakeLists.txt Wed Feb 15 10:11:51 2017
@@ -85,3 +85,6 @@ add_lldb_library(lldbCore
+# Needed to properly resolve references in a debug build.
+# TODO: Remove once we have better layering
+set_target_properties(lldbCore PROPERTIES LINK_INTERFACE_MULTIPLICITY 3)

More information about the lldb-commits mailing list