--- tdesktop-3.1.9-full/cmake/external/CMakeLists.txt +++ tdesktop-3.1.9-full-patched/cmake/external/CMakeLists.txt @@ -37,9 +37,6 @@ add_checked_subdirectory(hunspell) endif() add_checked_subdirectory(iconv) -if (LINUX) - add_checked_subdirectory(jemalloc) -endif() add_checked_subdirectory(jpeg) if (LINUX AND NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION) add_checked_subdirectory(kwayland) --- tdesktop-3.5.1-full/cmake/options_linux.cmake +++ tdesktop-3.5.1-full-patched/cmake/options_linux.cmake @@ -66,7 +66,6 @@ INTERFACE desktop-app::linux_jemalloc_helper $ - ${CMAKE_DL_LIBS} ) if (DESKTOP_APP_USE_ALLOCATION_TRACER) --- tdesktop-3.5.1-full/cmake/linux_jemalloc_helper/CMakeLists.txt +++ tdesktop-3.5.1-full-patched/cmake/linux_jemalloc_helper/CMakeLists.txt @@ -12,8 +12,3 @@ PRIVATE linux_jemalloc_helper.cpp ) - -target_link_libraries(linux_jemalloc_helper -PRIVATE - desktop-app::external_jemalloc -) --- tdesktop-3.5.1-full/cmake/linux_jemalloc_helper/linux_jemalloc_helper.cpp +++ tdesktop-3.5.1-full-patched/cmake/linux_jemalloc_helper/linux_jemalloc_helper.cpp @@ -4,19 +4,13 @@ // For license and copyright information please follow this link: // https://github.com/desktop-app/legal/blob/master/LEGAL // -#ifdef __FreeBSD__ -#include -#else // __FreeBSD__ -#include -#endif // !__FreeBSD__ +#include namespace { class JemallocInitializer { public: JemallocInitializer() { - auto backgroundThread = true; - mallctl("background_thread", nullptr, nullptr, &backgroundThread, sizeof(bool)); } };