[lldb][cmake] Remove custom logic for finding VCS file to fix LLDB's VCSVersion.inc generation

We are still implementing our own logic for this that looks for a VCS file in
the place where it was before the monorepo migration. This removes this logic
and just uses the CMake function that LLVM/Clang are using.

Reviewed By: JDevlieghere, kastiglione

Differential Revision: https://reviews.llvm.org/D88950
This commit is contained in:
Raphael Isemann 2020-10-13 17:13:23 +02:00
parent 02114e15da
commit 6733b25447
1 changed files with 2 additions and 10 deletions

View File

@ -4,16 +4,8 @@ set(lldbBase_SOURCES
lldb.cpp
)
foreach(file
"${LLDB_SOURCE_DIR}/.git/logs/HEAD" # Git
"${LLDB_SOURCE_DIR}/.svn/wc.db" # SVN 1.7
"${LLDB_SOURCE_DIR}/.svn/entries" # SVN 1.6
)
if(EXISTS "${file}")
set(lldb_vc "${file}")
break()
endif()
endforeach()
find_first_existing_vc_file("${LLDB_SOURCE_DIR}" lldb_vc)
set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")
set(generate_vcs_version_script "${LLVM_CMAKE_PATH}/GenerateVersionFromVCS.cmake")