Revert r248047 and fix the problem properly

In r248047, I attempted to fix a build breakage introduced by using
llvm's regex support from lldb-mi. However, my approach was flawed
when LLVM and lldb are dynamically linked, in which case two copies
of LLVMSupport would end up in memory, causing crashes on lldb start up.
Instead, use LINK_COMPONENTS to make sure lldb-mi has access to the
LLVMSupport symbols without causing duplication in the dynamic library
case.

llvm-svn: 250751
This commit is contained in:
Keno Fischer 2015-10-19 22:59:16 +00:00
parent a512103bdf
commit f23c0c405e
2 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,6 @@ USEDLIBS = lldbAPI.a \
LLVMMCDisassembler.a \
LLVMProfileData.a \
LLVMObjCARCOpts.a \
LLVMSupport.a \
lldbPluginPlatformMacOSX.a \
lldbPluginPlatformLinux.a \
lldbPluginPlatformWindows.a \

View File

@ -13,6 +13,7 @@ TOOLNAME = lldb-mi
NO_PEDANTIC = 1
LLVMLibsOptions += -ledit -llldb -llldbUtility
LINK_COMPONENTS := support
include $(LLDB_LEVEL)/Makefile