Author: Jonas Devlieghere Date: 2022-04-13T14:36:25-07:00 New Revision: 763ff89c0e0dcf77ee14c92936205bcf1b38385a
URL: https://github.com/llvm/llvm-project/commit/763ff89c0e0dcf77ee14c92936205bcf1b38385a DIFF: https://github.com/llvm/llvm-project/commit/763ff89c0e0dcf77ee14c92936205bcf1b38385a.diff LOG: [debugserver ] Un-conditionalize use of libcompression Jason removed the include guards in 681f6c2f552f. This patch removes the corresponding CMake logic as well. Differential revision: https://reviews.llvm.org/D123616 Added: Modified: lldb/tools/debugserver/source/CMakeLists.txt Removed: ################################################################################ diff --git a/lldb/tools/debugserver/source/CMakeLists.txt b/lldb/tools/debugserver/source/CMakeLists.txt index 86ad62de6088a..f636e387bf1f0 100644 --- a/lldb/tools/debugserver/source/CMakeLists.txt +++ b/lldb/tools/debugserver/source/CMakeLists.txt @@ -106,8 +106,6 @@ if (BUILDING_FOR_ARM64_OSX AND LLDB_ENABLE_ARM64E_DEBUGSERVER) set(CMAKE_OSX_ARCHITECTURES "arm64;arm64e") endif () -check_library_exists(compression compression_encode_buffer "" HAVE_LIBCOMPRESSION) - find_library(SECURITY_LIBRARY Security) add_subdirectory(MacOSX) @@ -125,6 +123,7 @@ set_property(GLOBAL PROPERTY LLDB_DEBUGSERVER_CODESIGN_IDENTITY ${debugserver_codesign_identity}) if(APPLE) + set(LIBCOMPRESSION compression) if(APPLE_EMBEDDED) find_library(BACKBOARD_LIBRARY BackBoardServices PATHS ${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks) @@ -146,10 +145,6 @@ if(APPLE) endif() endif() -if(HAVE_LIBCOMPRESSION) - set(LIBCOMPRESSION compression) -endif() - if(LLDB_USE_ENTITLEMENTS) if(APPLE_EMBEDDED) set(entitlements ${DEBUGSERVER_RESOURCE_DIR}/debugserver-entitlements.plist) @@ -258,10 +253,6 @@ target_link_libraries(lldbDebugserverCommon ${SECURITY_LIBRARY} ${LIBCOMPRESSION} ${ENERGY_LIBRARY}) -if(HAVE_LIBCOMPRESSION) - set_property(TARGET lldbDebugserverCommon APPEND PROPERTY - COMPILE_DEFINITIONS HAVE_LIBCOMPRESSION) -endif() add_lldb_tool(debugserver ADD_TO_FRAMEWORK debugserver.cpp LINK_LIBS lldbDebugserverCommon @@ -325,10 +316,6 @@ if(APPLE_EMBEDDED) lldbDebugserverArchSupport ${SECURITY_LIBRARY} ${LIBCOMPRESSION}) - if(HAVE_LIBCOMPRESSION) - set_property(TARGET lldbDebugserverCommon_NonUI APPEND PROPERTY - COMPILE_DEFINITIONS HAVE_LIBCOMPRESSION) - endif() add_lldb_tool(debugserver-nonui debugserver.cpp _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits