[llvm] [clang][docs] Clarify CMake version requirement for CMAKE_LINKER_TYPE (PR #165326)

Krisitan Erik Olsen via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 18:38:41 PDT 2025


https://github.com/Kristianerik updated https://github.com/llvm/llvm-project/pull/165326

>From fcbb7b4b41e9d9ef53fae56bce67e5537abe0c69 Mon Sep 17 00:00:00 2001
From: Kristianerik <46120297+Kristianerik at users.noreply.github.com>
Date: Mon, 27 Oct 2025 15:00:39 -0700
Subject: [PATCH] clarify CMake version requirement for CMAKE_LINKER_TYPE

---
 llvm/docs/HowToCrossCompileLLVM.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/llvm/docs/HowToCrossCompileLLVM.rst b/llvm/docs/HowToCrossCompileLLVM.rst
index d69e4dbc766c5..9dd4513089cfd 100644
--- a/llvm/docs/HowToCrossCompileLLVM.rst
+++ b/llvm/docs/HowToCrossCompileLLVM.rst
@@ -106,6 +106,12 @@ Then execute the following snippet to create a toolchain file:
     EOF
 
 
+.. note::
+  These instructions require **CMake version 3.29 or higher**, because
+  the ``CMAKE_LINKER_TYPE`` option used in the toolchain file is only
+  supported from this version onward. Older versions of CMake will
+  result in configuration errors.
+  
 Then configure and build by invoking ``cmake``:
 
    .. code-block:: bash



More information about the llvm-commits mailing list