This is an archive of the discontinued LLVM Phabricator instance.

[debugserver ] Un-conditionalize use of libcompression
ClosedPublic

Authored by JDevlieghere on Apr 12 2022, 9:16 AM.

Details

Summary

Jason removed the include guards in 681f6c2f552fb9b57380f4bfd453e1fc9b6a099e. This removes the corresponding CMake logic.

Diff Detail

Event Timeline

JDevlieghere created this revision.Apr 12 2022, 9:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2022, 9:16 AM
JDevlieghere requested review of this revision.Apr 12 2022, 9:16 AM
jasonmolenda accepted this revision.Apr 12 2022, 9:20 AM

I think we only support building debugserver on macOS systems that have libcompression. Was there a configuration where this resulted in an error? lldb needs to test for libcompression and use it if available, but with debugserver we assume it is available iirc. I'm fine with the patch, but I'm curious how it came up. It used to be tested before use etc but I removed that a couple of years ago when our minimum deployment target was high enough that it was always available.

This revision is now accepted and ready to land.Apr 12 2022, 9:20 AM

fwiw,

commit 681f6c2f552fb9b57380f4bfd453e1fc9b6a099e
Author: Jason Molenda <jmolenda@apple.com>
Date:   Tue Dec 18 22:21:48 2018 +0000

    Un-conditionalize use of libcompression.  debugserver only builds
    on Darwin systems and libcompression has been in the OS for over
    three years.

That also works for me, but then let's remove the corresponding logic in CMake as well.

Sounds good. I think it's test-and-use for lldb, and debugserver ended up structure the same way.

JDevlieghere retitled this revision from [debugserver] Add HAVE_LIBCOMPRESSION guards to [debugserver ] Un-conditionalize use of libcompression.
JDevlieghere edited the summary of this revision. (Show Details)
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2022, 2:36 PM