[llvm] 4d08284 - [CMake][LLVM] Align CMAKE_EXPORT_COMPILE_COMMANDS from 1 to ON (#184971)

via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 7 00:46:55 PST 2026


Author: Tomer Shafir
Date: 2026-03-07T10:46:51+02:00
New Revision: 4d08284157d09ce6104f0753f1dbf5adc43c113d

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

LOG: [CMake][LLVM] Align CMAKE_EXPORT_COMPILE_COMMANDS from 1 to ON (#184971)

ON/OFF are more conventional in the project for boolean CMake variables.

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index dbf8b9e4aa661..9771e209ae081 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -381,7 +381,7 @@ list(INSERT CMAKE_MODULE_PATH 0
 
 # Generate a CompilationDatabase (compile_commands.json file) for our build,
 # for use by clang_complete, YouCompleteMe, etc.
-set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
 option(LLVM_INSTALL_BINUTILS_SYMLINKS
   "Install symlinks from the binutils tool names to the corresponding LLVM tools." OFF)


        


More information about the llvm-commits mailing list