Skip to content

Commit

Permalink
[lldb] Configure debugserver_vers.c from CMake
Browse files Browse the repository at this point in the history
llvm-svn: 366932
(cherry picked from commit e8bffd3)

 Conflicts:
	lldb/tools/debugserver/source/CMakeLists.txt
  • Loading branch information
weliveindetail authored and adrian-prantl committed Oct 29, 2019
1 parent 7c84051 commit 2121984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/tools/debugserver/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ endif()

set(DEBUGSERVER_VERS_GENERATED_FILE ${CMAKE_CURRENT_BINARY_DIR}/debugserver_vers.c)
set_source_files_properties(${DEBUGSERVER_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
configure_file(debugserver_vers.c.in
${DEBUGSERVER_VERS_GENERATED_FILE} @ONLY)

set(lldbDebugserverCommonSources
DNBArch.cpp
Expand Down
2 changes: 2 additions & 0 deletions lldb/tools/debugserver/source/debugserver_vers.c.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const unsigned char debugserverVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:LLDB PROJECT:lldb-@LLDB_VERSION_MAJOR@.@LLDB_VERSION_MINOR@.@LLDB_VERSION_PATCH@" "\n";
const double debugserverVersionNumber __attribute__ ((used)) = (double)@LLDB_VERSION_MAJOR@.@LLDB_VERSION_MINOR@;

0 comments on commit 2121984

Please sign in to comment.