llvm-project/lldb/tools/lldb-server
Bruce Mitchener 6ec5d61bda Fix handling of LLDB_VERS_GENERATED_FILE.
Summary:
This is Darwin only.

The symbol defined by ${LLDB_VERS_GENERATED_FILE} is used by
source/lldb.cpp, so anything that uses lldb.cpp (which is in
lldbBase) should also have the generated symbol. This means
that the entire process can be centralized within source/CMakeLists.txt
where lldbBase is constructed.

Additionally, the custom command should have dependencies on the
project file as well as the generation script so that if either
changes, the version file is correctly re-generated and everything
is re-linked appropriately.

* cmake/LLDBDependencies.cmake: Remove everything related to
  the generated version file from here.

* source/CMakeLists.txt: On Darwin, add the generated version
  file to the sources that make up lldbBase.  Also, create a
  custom target and make lldbBase depend on it to re-generate
  the generated file as needed.

* source/API/CMakeLists.txt: Don't need to build the generated
  version file here or use it to control linking against swig_wrapper.

* tools/lldb-server/CMakeLists.txt: Likewise.

Reviewers: dawn, sas, clayborg, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13552

llvm-svn: 249806
2015-10-09 03:40:55 +00:00
..
CMakeLists.txt Fix handling of LLDB_VERS_GENERATED_FILE. 2015-10-09 03:40:55 +00:00
LLDBServerUtilities.cpp Fix crash in lldb-server caused by an API change in LLVM 2015-09-10 11:08:41 +00:00
LLDBServerUtilities.h Make log options uniform betwwen lldb-platform and lldb-gdbserver 2015-05-27 13:34:04 +00:00
Makefile Add -lpthread to LLDB shared lib link line unconditionally 2015-06-29 21:52:45 +00:00
lldb-gdbserver.cpp Include platform agnostic <HostGetOpt.h> in the place of <getopt.h> 2015-10-01 07:45:58 +00:00
lldb-platform.cpp Fix temp port file path generation in lldb-platform. 2015-07-14 18:54:52 +00:00
lldb-server.cpp Make log options uniform betwwen lldb-platform and lldb-gdbserver 2015-05-27 13:34:04 +00:00
lldb-server.exports Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00