diff options
author | Dawn Perchik <dawn@burble.org> | 2015-10-24 01:31:12 +0000 |
---|---|---|
committer | Dawn Perchik <dawn@burble.org> | 2015-10-24 01:31:12 +0000 |
commit | e3f250dbda5eee7f400bff848aaf3a339f6d7d35 (patch) | |
tree | cf7ee67bfb88811c619634654add23d2edf91a80 /lldb/tools/debugserver/source/RNBRemote.cpp | |
parent | ac1cb4fadf31b06e25ea698dd5ceff4452aaf5e9 (diff) | |
download | bcm5719-llvm-e3f250dbda5eee7f400bff848aaf3a339f6d7d35.tar.gz bcm5719-llvm-e3f250dbda5eee7f400bff848aaf3a339f6d7d35.zip |
[debugserver] Fix OSX build for older XCode versions after r251091.
This fixes the OSX build for XCode versions older than 7 by skipping
references to LC_VERSION_MIN_TVOS and LC_VERSION_MIN_WATCHOS if
TARGET_OS_TV or TARGET_OS_WATCH aren't defined.
Reviewed by: jasonmolenda
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D14036
llvm-svn: 251172
Diffstat (limited to 'lldb/tools/debugserver/source/RNBRemote.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/RNBRemote.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index 9372118232a..2c9e0c5cf7f 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -5846,17 +5846,21 @@ RNBRemote::HandlePacket_qProcessInfo (const char *p) DNBLogThreadedIf (LOG_RNB_PROC, "LC_VERSION_MIN_MACOSX -> 'ostype:macosx;'"); break; +#if defined (TARGET_OS_TV) && TARGET_OS_TV == 1 case LC_VERSION_MIN_TVOS: os_handled = true; rep << "ostype:tvos;"; DNBLogThreadedIf (LOG_RNB_PROC, "LC_VERSION_MIN_TVOS -> 'ostype:tvos;'"); break; +#endif +#if defined (TARGET_OS_WATCH) && TARGET_OS_WATCH == 1 case LC_VERSION_MIN_WATCHOS: os_handled = true; rep << "ostype:watchos;"; DNBLogThreadedIf (LOG_RNB_PROC, "LC_VERSION_MIN_WATCHOS -> 'ostype:watchos;'"); break; +#endif default: break; |