Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake 2index 37364341ff8b..7f74c1a3e257 100644 3--- a/cmake/modules/LLDBConfig.cmake 4+++ b/cmake/modules/LLDBConfig.cmake 5@@ -257,7 +257,7 @@ if (NOT TARGET clang-resource-headers) 6 # Iterate over the possible places where the external resource directory 7 # could be and pick the first that exists. 8 foreach(CANDIDATE "${Clang_DIR}/../.." "${LLVM_DIR}" "${LLVM_LIBRARY_DIRS}" 9- "${LLVM_BUILD_LIBRARY_DIR}" 10+ "${LLVM_BUILD_LIBRARY_DIR}" "@clangLibDir@" 11 "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}") 12 # Build the resource directory path by appending 'clang/<version number>'. 13 set(CANDIDATE_RESOURCE_DIR "${CANDIDATE}/clang/${LLDB_CLANG_RESOURCE_DIR_NAME}")