From fcbb7b4b41e9d9ef53fae56bce67e5537abe0c69 Mon Sep 17 00:00:00 2001 From: Kristianerik <46120297+Kristianerik@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