================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits