Skip to content

Commit

Permalink
[debugserver] Fix OSX build for older XCode versions after r251091.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dawn Perchik committed Oct 24, 2015
1 parent ac1cb4f commit e3f250d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lldb/tools/debugserver/source/RNBRemote.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e3f250d

Please sign in to comment.