1
0
Fork 0
cmake_helpers/external
Klemens Nanni ddd1ee547d Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc
On at least OpenBSD, malloc(3) is preferred to other implementations
like jemalloc for various reasons.

It is common for portable third-party software (ports) to provide a
switch for en/disabling jemalloc.

tdesktop makes this easy since it does not contain any (je)malloc
specific code (anymore).

Introduce a new default-off option that disables jemalloc when enabled
explicitly;  this also allow developers and package maintainers more
easily to try different malloc implementations, e.g. for debugging.

Memory leaks reported in the slightly old issue
"The app consumes an unexpectedly large amount of RAM"
https://github.com/telegramdesktop/tdesktop/issues/16084 could not
be reproduced on OpenBSD/amd64 with malloc(3) using tdesktop >= 3.3.1.
2022-02-27 19:58:36 +03:00
..
angle Define 'KHRONOS_STATIC' globally. 2021-07-26 14:08:59 +03:00
auto_updates Move libdl/libpthread handling to common_options 2022-01-05 12:54:40 +03:00
crash_reports Link a single crashpad_client library. 2021-10-27 14:08:05 +04:00
dispatch Move libdl/libpthread handling to common_options 2022-01-05 12:54:40 +03:00
expected Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
fcitx5_qt Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
fcitx_qt5 Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
ffmpeg Restore TARGET_FILE usage for external libraries 2022-02-05 23:00:53 +03:00
glib Add SYSTEM flag to target_include_directories where appropriate 2021-07-19 19:01:08 +03:00
glibmm Add SYSTEM flag to target_include_directories where appropriate 2021-07-19 19:01:08 +03:00
gsl Use return more for less indentations 2022-01-14 05:03:21 +03:00
hime_qt Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
hunspell Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
iconv Use macOS libs from Libraries/local. 2021-09-07 23:39:38 +03:00
jemalloc Don't link linux_jemalloc_helper itself to common_options 2022-02-15 19:20:04 +03:00
jpeg Use macOS libs from Libraries/local. 2021-09-07 23:39:38 +03:00
kwayland Generate pkg-config file manually for wayland-protocols 2022-02-19 15:59:15 +03:00
lz4 Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
minizip Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
nimf_qt5 Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
openal Use openal-soft's cmake config rather than pkg-config file 2022-01-14 05:03:21 +03:00
openssl Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
opus Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
qr_code_generator Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
qt Restore TARGET_FILE usage for external libraries 2022-02-05 23:00:53 +03:00
ranges Use return more for less indentations 2022-01-14 05:03:21 +03:00
rlottie Use bundled fonts and rlottie by default since they're patched 2022-01-13 04:33:23 +03:00
rnnoise Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
ton Add SYSTEM flag to target_include_directories where appropriate 2021-07-19 19:01:08 +03:00
variant Fix external_variant to actually add found include directories 2022-01-14 05:03:21 +03:00
vpx libvpx: Fix folder once again. 2022-01-23 12:22:50 +03:00
webrtc Restore TARGET_FILE usage for external libraries 2022-02-05 23:00:53 +03:00
xcb Add xcb-keysyms and xcb-record dependencies 2020-12-09 22:32:40 +03:00
xxhash Use pkg-config to find xxhash 2021-12-23 00:03:29 +00:00
zlib Fix build with external_zlib on Windows. 2022-01-14 23:40:40 +03:00
CMakeLists.txt Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc 2022-02-27 19:58:36 +03:00