]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake/BuildArrow: Use AUTO mode for xsimd dependency detection
authorKefu Chai <k.chai@proxmox.com>
Wed, 15 Oct 2025 07:46:22 +0000 (15:46 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 15 Oct 2025 07:49:09 +0000 (15:49 +0800)
commit2defde30e4c61cd9f33196b91ac16505928ce774
treef3476900fac32fdd5b61efe63bc5c321c70ef515
parente1f0faaed3758c0fc750b92318d5d6cd4c5e33b2
cmake/BuildArrow: Use AUTO mode for xsimd dependency detection

Arrow requires xsimd >= 9.0.1 according to arrow/cpp/thirdparty/versions.txt.
Previously, we unconditionally set -Dxsimd_SOURCE=BUNDLED, forcing the use
of Arrow's vendored xsimd regardless of system package availability.

This commit changes to -Dxsimd_SOURCE=AUTO, which allows Arrow's
resolve_dependency mechanism to automatically:
1. Try to find system xsimd package
2. Check if version >= 9.0.1
3. Use system version if found and sufficient
4. Fall back to bundled version otherwise

This reduces build time and dependencies on systems with sufficient xsimd,
while maintaining compatibility with older distributions.

Distribution availability:
- Ubuntu Noble (24.04): libxsimd-dev 12.1.1 (✓ will use system)
- Ubuntu Jammy (22.04): libxsimd-dev 7.6.0 (✗ will use bundled)
- Debian Trixie (13): libxsimd-dev 13.2.0 (✓ will use system)
- CentOS Stream 9: xsimd-devel 7.4.9 (✗ will use bundled)

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
cmake/modules/BuildArrow.cmake