]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add WITH_MOLD option for Mold linker support 69711/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 28 Jun 2026 14:42:23 +0000 (14:42 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 28 Jun 2026 14:53:54 +0000 (14:53 +0000)
commitebc18499afd52ff43614cbf3c1f10c4713707d0f
treed512a5d5807c5f88a5e70fe91a3a55c382a4ff6f
parente55244161992640e2e4a487b1cbaa702f2cebf43
cmake: add WITH_MOLD option for Mold linker support

Add a WITH_MOLD cmake option that auto-configures the build for
the Mold linker. When enabled, cmake finds mold, sets CMAKE_LINKER,
injects -fuse-ld=mold into all linker flag variables, and sets
USING_MOLD_LINKER which gates the Mold-specific workarounds added
in the previous commit.

Usage: cmake -DWITH_MOLD=ON ...

Assisted-by: Claude <claude.ai>
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
CMakeLists.txt