forked from OSchip/llvm-project
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:
parent
a512103bdf
commit
f23c0c405e
|
@ -98,7 +98,6 @@ USEDLIBS = lldbAPI.a \
|
|||
LLVMMCDisassembler.a \
|
||||
LLVMProfileData.a \
|
||||
LLVMObjCARCOpts.a \
|
||||
LLVMSupport.a \
|
||||
lldbPluginPlatformMacOSX.a \
|
||||
lldbPluginPlatformLinux.a \
|
||||
lldbPluginPlatformWindows.a \
|
||||
|
|
|
@ -13,6 +13,7 @@ TOOLNAME = lldb-mi
|
|||
NO_PEDANTIC = 1
|
||||
|
||||
LLVMLibsOptions += -ledit -llldb -llldbUtility
|
||||
LINK_COMPONENTS := support
|
||||
|
||||
include $(LLDB_LEVEL)/Makefile
|
||||
|
||||
|
|
Loading…
Reference in New Issue