Enable compression capability in debugserver for all of ios/watchos/tvos

environments.

<rdar://problem/30159019> 

llvm-svn: 292882
This commit is contained in:
Jason Molenda 2017-01-24 04:43:40 +00:00
parent 993edc9db1
commit 5a6826ebc4
1 changed files with 1 additions and 6 deletions

View File

@ -3611,15 +3611,10 @@ rnb_err_t RNBRemote::HandlePacket_qSupported(const char *p) {
snprintf(buf, sizeof(buf), "qXfer:features:read+;PacketSize=%x;qEcho+",
max_packet_size);
// By default, don't enable compression. It's only worth doing when we are
// working
// with a low speed communication channel.
bool enable_compression = false;
(void)enable_compression;
// Enable compression when debugserver is running on a watchOS device where
// communication may be over Bluetooth.
#if defined(TARGET_OS_WATCH) && TARGET_OS_WATCH == 1
#if defined (TARGET_OS_WATCH) || defined (TARGET_OS_IOS) || defined (TARGET_OS_TVOS)
enable_compression = true;
#endif