[llvm] e66eabe - [llvm][cmake] Add clang if not already present when building lldb (#149055)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 02:29:00 PDT 2025
Author: David Spickett
Date: 2025-07-17T10:28:56+01:00
New Revision: e66eabee0022af60347e83ef2c0d4b6dbfb7f0a5
URL: https://github.com/llvm/llvm-project/commit/e66eabee0022af60347e83ef2c0d4b6dbfb7f0a5
DIFF: https://github.com/llvm/llvm-project/commit/e66eabee0022af60347e83ef2c0d4b6dbfb7f0a5.diff
LOG: [llvm][cmake] Add clang if not already present when building lldb (#149055)
Fixes https://github.com/llvm/llvm-project/issues/54555
This follows flang's pattern, it adds clang if you don't have it in
LLVM_ENABLE_PROJECTS.
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 3f8201fa426fe..903461b39902e 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -179,6 +179,13 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
endif ()
endif()
+if ("lldb" IN_LIST LLVM_ENABLE_PROJECTS)
+ if (NOT "clang" IN_LIST LLVM_ENABLE_PROJECTS)
+ message(STATUS "Enabling clang as a dependency of lldb")
+ list(APPEND LLVM_ENABLE_PROJECTS "clang")
+ endif()
+endif ()
+
if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated. Please use "
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
More information about the llvm-commits
mailing list