From e8bffd3ff0289cd317d457e2562e130729c3b8d2 Mon Sep 17 00:00:00 2001 From: Stefan Granitz Date: Wed, 24 Jul 2019 17:28:24 +0000 Subject: [PATCH] [lldb] Configure debugserver_vers.c from CMake llvm-svn: 366932 --- lldb/tools/debugserver/source/CMakeLists.txt | 2 ++ lldb/tools/debugserver/source/debugserver_vers.c.in | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 lldb/tools/debugserver/source/debugserver_vers.c.in diff --git a/lldb/tools/debugserver/source/CMakeLists.txt b/lldb/tools/debugserver/source/CMakeLists.txt index e4882b9..b1aaed8 100644 --- a/lldb/tools/debugserver/source/CMakeLists.txt +++ b/lldb/tools/debugserver/source/CMakeLists.txt @@ -139,6 +139,8 @@ add_custom_command(OUTPUT ${generated_mach_interfaces} 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 diff --git a/lldb/tools/debugserver/source/debugserver_vers.c.in b/lldb/tools/debugserver/source/debugserver_vers.c.in new file mode 100644 index 0000000..00e34c2 --- /dev/null +++ b/lldb/tools/debugserver/source/debugserver_vers.c.in @@ -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@; -- 2.7.4