[Lldb-commits] [lldb] Install generated API headers into LLDB.framework (PR #90666)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Wed May 1 10:21:06 PDT 2024
================
@@ -8,6 +8,12 @@ set(LLDB_INCLUDE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(LLDB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LLDB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
+if (LLDB_BUILT_STANDALONE)
+ set(LLDB_OBJ_DIR ${CMAKE_CURRENT_BINARY_DIR})
+else()
+ set(LLDB_OBJ_DIR ${CMAKE_CURRENT_BINARY_DIR}/tools/lldb)
+endif()
----------------
bulbazord wrote:
Hmm, thinking about this further that does make sense. CMake will create a subdirectory in your build tree for lldb at `$BUILD_DIR/tools/lldb` and will set `CMAKE_CURRENT_BINARY_DIR` to that subdirectory in that context. For standalone builds, LLDB is its own standalone project, so it gets set to `$BUILD_DIR` in that case. I think you can just set `LLDB_OBJ_DIR` to `${CMAKE_CURRENT_BINARY_DIR}` and call it a day.
https://github.com/llvm/llvm-project/pull/90666
More information about the lldb-commits
mailing list