Skip to content

Commit 2121984

Browse files
weliveindetailadrian-prantl
authored andcommitted
[lldb] Configure debugserver_vers.c from CMake
llvm-svn: 366932 (cherry picked from commit e8bffd3) Conflicts: lldb/tools/debugserver/source/CMakeLists.txt
1 parent 7c84051 commit 2121984

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lldb/tools/debugserver/source/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ endif()
140140

141141
set(DEBUGSERVER_VERS_GENERATED_FILE ${CMAKE_CURRENT_BINARY_DIR}/debugserver_vers.c)
142142
set_source_files_properties(${DEBUGSERVER_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
143+
configure_file(debugserver_vers.c.in
144+
${DEBUGSERVER_VERS_GENERATED_FILE} @ONLY)
143145

144146
set(lldbDebugserverCommonSources
145147
DNBArch.cpp
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const unsigned char debugserverVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:LLDB PROJECT:lldb-@LLDB_VERSION_MAJOR@.@LLDB_VERSION_MINOR@.@LLDB_VERSION_PATCH@" "\n";
2+
const double debugserverVersionNumber __attribute__ ((used)) = (double)@LLDB_VERSION_MAJOR@.@LLDB_VERSION_MINOR@;

0 commit comments

Comments
 (0)