[Lldb-commits] [lldb] [lldb][cmake] Add clang resource dir to LLDB shell tests config (PR #136761)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 29 12:05:28 PDT 2025
================
@@ -1,6 +1,12 @@
add_custom_target(lldb-shell-test-deps)
set_target_properties(lldb-shell-test-deps PROPERTIES FOLDER "LLDB/Tests")
add_dependencies(lldb-shell-test-deps lldb-test-depends)
+if(LLDB_BUILT_STANDALONE)
+ get_target_property(CLANG_RESOURCE_DIR clang-resource-headers INTERFACE_INCLUDE_DIRECTORIES)
+ set(CLANG_RESOURCE_DIR "${CLANG_RESOURCE_DIR}/..")
----------------
chelcassanova wrote:
Getting the directory in a standalone build (using the `get_target_property` call) gives us this: `<prefix>/llvm-build/./lib/../lib/clang/21/include/` whereas getting in a non-standalone build (using the `get_clang_resource_dir` call) gives us this: `<prefix>/lib/clang/21`. I'm moving the standalone value up a directory so that both values match regardless of how the build was done. I can add a comment to clarify this.
https://github.com/llvm/llvm-project/pull/136761
More information about the lldb-commits
mailing list