forked from OSchip/llvm-project
Instead of weak-linking against LoggingSupport framework (which
requires that this private framework be available - and it is not available earlier than macOS 10.12 - to build lldb), dlopen the framework binary on demand in debugserver. We're already using dlsym() to look up all the symbols so there is no need to use weak linking here. <rdar://problem/30158797> llvm-svn: 293135
This commit is contained in:
parent
aee15fb204
commit
891c777f90
|
@ -50,6 +50,7 @@ bool LookupSPICalls() {
|
|||
static bool s_has_spi;
|
||||
|
||||
std::call_once(s_once_flag, [] {
|
||||
dlopen ("/System/Library/PrivateFrameworks/LoggingSupport.framework/LoggingSupport", RTLD_NOW);
|
||||
s_os_activity_stream_for_pid = (os_activity_stream_for_pid_t)dlsym(
|
||||
RTLD_DEFAULT, "os_activity_stream_for_pid");
|
||||
s_os_activity_stream_resume = (os_activity_stream_resume_t)dlsym(
|
||||
|
|
Loading…
Reference in New Issue