[llvm] d14062e - docs: Add documentation for LLVM_ENABLE_LIBEDIT CMake flag (#147112)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 21:11:18 PDT 2025


Author: Murat Toprak
Date: 2025-07-09T09:41:14+05:30
New Revision: d14062ee7a5b1c97f2a1d98f52c7a9d178cbceff

URL: https://github.com/llvm/llvm-project/commit/d14062ee7a5b1c97f2a1d98f52c7a9d178cbceff
DIFF: https://github.com/llvm/llvm-project/commit/d14062ee7a5b1c97f2a1d98f52c7a9d178cbceff.diff

LOG: docs: Add documentation for LLVM_ENABLE_LIBEDIT CMake flag (#147112)

This adds missing documentation for the LLVM_ENABLE_LIBEDIT flag to the
CMake documentation page, addressing the issue that this flag was
undocumented despite being used in the build system.

The documentation explains:
- Purpose: Controls libedit support for command-line editing
- Supported values: ON, OFF, or auto-detection
- Default behavior: Auto-detection when not specified

Fixes: #146477

Added: 
    

Modified: 
    llvm/docs/CMake.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index 2f03421c92230..17be41b20a12a 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -540,6 +540,13 @@ enabled sub-projects. Nearly all of these variable names begin with
   passed to invocations of both so that the project is built using libc++
   instead of stdlibc++. Defaults to OFF.
 
+**LLVM_ENABLE_LIBEDIT**:BOOL
+  Controls whether to enable libedit support for command-line editing and history
+  in LLVM tools. When ``ON``, forces libedit support to be enabled and will cause a
+  CMake configuration error if libedit cannot be found. When ``OFF``, disables
+  libedit support entirely. If not specified, LLVM will auto-detect libedit
+  availability. Defaults to auto-detection.
+
 **LLVM_ENABLE_LIBPFM**:BOOL
   Enable building with libpfm to support hardware counter measurements in LLVM
   tools.


        


More information about the llvm-commits mailing list