[Lldb-commits] [PATCH] D11668: Fix build of lldb on Mavericks after svn rev.243511
Dawn Perchik
dawn+llvm at burble.org
Thu Jul 30 16:16:04 PDT 2015
dawn created this revision.
dawn added reviewers: jasonmolenda, clayborg.
dawn added a subscriber: lldb-commits.
dawn set the repository for this revision to rL LLVM.
This patch adds a test for __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ around the code which requires 10.10 support to link. Without this, lldb gets unresolved references to _csr_check and _rootless_allows_task_for_pid. This patch resolves http://reviews.llvm.org/rL243511.
Repository:
rL LLVM
http://reviews.llvm.org/D11668
Files:
tools/debugserver/source/RNBRemote.cpp
Index: tools/debugserver/source/RNBRemote.cpp
===================================================================
--- tools/debugserver/source/RNBRemote.cpp
+++ tools/debugserver/source/RNBRemote.cpp
@@ -141,7 +141,7 @@
extern void ASLLogCallback(void *baton, uint32_t flags, const char *format, va_list args);
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
extern "C" {
#define CS_OPS_STATUS 0 /* return status */
@@ -3692,7 +3692,7 @@
else
m_ctx.LaunchStatus().SetErrorString("attach failed");
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
if (pid_attaching_to == INVALID_NUB_PROCESS && !attach_name.empty())
{
pid_attaching_to = DNBProcessGetPIDByName (attach_name.c_str());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11668.31085.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150730/ee846e27/attachment.bin>
More information about the lldb-commits
mailing list