ClickHouse/contrib/jemalloc-cmake
Yuriy Chernyshov 6d28b22687
Fix jemalloc compatibility with LLVM libunwind
jemalloc provides support for two different libunwind flavors: the original HP libunwind and the one coming with gcc / g++ / libstdc++.

The latter is identified by `JEMALLOC_PROF_LIBGCC` and provides `_Unwind_Backtrace` method instead of `unw_backtrace`.
At the time ClickHouse uses LLVM libunwind which follows libgcc's way of backtracing.

ClickHouse has to provide `unw_backtrace` method by the means of [commit 8e2b31e](8e2b31e766).

While this PR does not allow complete remove of the patch (as ClickHouse itself uses unw_backtrace directly), it definitely sorts the things out.
2022-05-10 16:14:59 +03:00
..
include/jemalloc fix build fail with gcc --fix warnings without disabling some parameters 2022-03-11 21:59:19 +08:00
include_darwin_aarch64/jemalloc/internal jemalloc: update provisioned headers for darwin aarch64 2022-02-17 21:25:58 +03:00
include_darwin_x86_64/jemalloc/internal jemalloc: update provisioned headers for darwin x86_64 2022-02-17 21:25:58 +03:00
include_freebsd_aarch64/jemalloc/internal jemalloc: update provisioned headers for freebsd aarch64 2022-02-17 21:25:58 +03:00
include_freebsd_x86_64/jemalloc/internal jemalloc: update provisioned headers for freebsd x86_64 2022-02-17 21:25:58 +03:00
include_linux_aarch64/jemalloc/internal jemalloc: update provisioned headers for linux aarch64 2022-02-17 21:25:58 +03:00
include_linux_ppc64le/jemalloc/internal jemalloc: update provisioned headers for linux ppc64le 2022-02-17 21:25:58 +03:00
include_linux_riscv64/jemalloc/internal jemalloc: update provisioned headers for linux riscv64 2022-02-17 21:25:58 +03:00
include_linux_x86_64/jemalloc/internal jemalloc: remove README for linux x86_64 2022-02-17 21:25:58 +03:00
include_linux_x86_64_musl/jemalloc/internal Build clickhouse-keeper with musl 2022-04-12 18:48:16 +02:00
CMakeLists.txt Fix jemalloc compatibility with LLVM libunwind 2022-05-10 16:14:59 +03:00
README jemalloc: add a note about JEMALLOC_PREFIX 2022-02-17 21:25:58 +03:00

It allows to integrate JEMalloc into CMake project.

- Remove JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF because it's non standard.
- Added JEMALLOC_CONFIG_MALLOC_CONF substitution
- Add musl support (USE_MUSL)
- Also note, that darwin build requires JEMALLOC_PREFIX, while others don not