summaryrefslogtreecommitdiff
path: root/lldb/cmake
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-08-20 11:20:12 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-08-20 12:52:21 -0400
commit3adda398cef7f56d024924158e7b17d65cbc565d (patch)
tree6af506d130f8fffc73729e50caeda313b4e61973 /lldb/cmake
parent7dec4648c4f81c7ec0e118599c5ee87512092c21 (diff)
downloadllvm-3adda398cef7f56d024924158e7b17d65cbc565d.tar.gz
[clang][lldb][cmake] Use new `*_INSTALL_LIBDIR_BASENAME` CPP macro
Use this instead of `*_LIBDIR_SUFFIX`, from which it is computed. This gets us ready for D130586, in which `*_LIBDIR_SUFFIX` is deprecated. Differential Revision: https://reviews.llvm.org/D132300
Diffstat (limited to 'lldb/cmake')
-rw-r--r--lldb/cmake/modules/LLDBGenerateConfig.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/cmake/modules/LLDBGenerateConfig.cmake b/lldb/cmake/modules/LLDBGenerateConfig.cmake
index 94332656b28c..5acb7d873db4 100644
--- a/lldb/cmake/modules/LLDBGenerateConfig.cmake
+++ b/lldb/cmake/modules/LLDBGenerateConfig.cmake
@@ -19,6 +19,8 @@ check_cxx_symbol_exists(__NR_process_vm_readv "sys/syscall.h" HAVE_NR_PROCESS_VM
check_library_exists(compression compression_encode_buffer "" HAVE_LIBCOMPRESSION)
+set(LLDB_INSTALL_LIBDIR_BASENAME "lib${LLDB_LIBDIR_SUFFIX}")
+
# These checks exist in LLVM's configuration, so I want to match the LLVM names
# so that the check isn't duplicated, but we translate them into the LLDB names
# so that I don't have to change all the uses at the moment.