Skip to content

Commit e8bffd3

Browse files
[lldb] Configure debugserver_vers.c from CMake
llvm-svn: 366932
1 parent 047a0b6 commit e8bffd3

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
@@ -139,6 +139,8 @@ add_custom_command(OUTPUT ${generated_mach_interfaces}
139139

140140
set(DEBUGSERVER_VERS_GENERATED_FILE ${CMAKE_CURRENT_BINARY_DIR}/debugserver_vers.c)
141141
set_source_files_properties(${DEBUGSERVER_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
142+
configure_file(debugserver_vers.c.in
143+
${DEBUGSERVER_VERS_GENERATED_FILE} @ONLY)
142144

143145
set(lldbDebugserverCommonSources
144146
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)