[Lldb-commits] [PATCH] D88950: [lldb][cmake] Remove custom logic for finding VCS file to fix LLDB's VCSVersion.inc generation
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 13 08:15:03 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6733b2544794: [lldb][cmake] Remove custom logic for finding VCS file to fix LLDB's VCSVersion. (authored by teemperor).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88950/new/
https://reviews.llvm.org/D88950
Files:
lldb/source/CMakeLists.txt
Index: lldb/source/CMakeLists.txt
===================================================================
--- lldb/source/CMakeLists.txt
+++ lldb/source/CMakeLists.txt
@@ -4,16 +4,8 @@
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")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88950.297868.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201013/df31e936/attachment.bin>
More information about the lldb-commits
mailing list