[Lldb-commits] [lldb] r366932 - [lldb] Configure debugserver_vers.c from CMake
Stefan Granitz via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 24 10:28:24 PDT 2019
Author: stefan.graenitz
Date: Wed Jul 24 10:28:24 2019
New Revision: 366932
URL: http://llvm.org/viewvc/llvm-project?rev=366932&view=rev
Log:
[lldb] Configure debugserver_vers.c from CMake
Added:
lldb/trunk/tools/debugserver/source/debugserver_vers.c.in
Modified:
lldb/trunk/tools/debugserver/source/CMakeLists.txt
Modified: lldb/trunk/tools/debugserver/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/CMakeLists.txt?rev=366932&r1=366931&r2=366932&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/source/CMakeLists.txt Wed Jul 24 10:28:24 2019
@@ -139,6 +139,8 @@ add_custom_command(OUTPUT ${generated_ma
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
Added: lldb/trunk/tools/debugserver/source/debugserver_vers.c.in
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/debugserver_vers.c.in?rev=366932&view=auto
==============================================================================
--- lldb/trunk/tools/debugserver/source/debugserver_vers.c.in (added)
+++ lldb/trunk/tools/debugserver/source/debugserver_vers.c.in Wed Jul 24 10:28:24 2019
@@ -0,0 +1,2 @@
+const unsigned char debugserverVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:LLDB PROJECT:lldb- at LLDB_VERSION_MAJOR@. at LLDB_VERSION_MINOR@. at LLDB_VERSION_PATCH@" "\n";
+const double debugserverVersionNumber __attribute__ ((used)) = (double)@LLDB_VERSION_MAJOR at .@LLDB_VERSION_MINOR@;
More information about the lldb-commits
mailing list