[CMake] Create a custom target for generating extension module.
authorZachary Turner <zturner@google.com>
Tue, 17 Feb 2015 22:20:29 +0000 (22:20 +0000)
committerZachary Turner <zturner@google.com>
Tue, 17 Feb 2015 22:20:29 +0000 (22:20 +0000)
commitaeda626d8080c403c18cfe6a9aae5b04ece0a9a5
tree7f92fbf0a9c1b28bb1dfad230afe5008d89c290e
parent7513e8207518c8d1da7ec1cc16115d41d46c82c1
[CMake] Create a custom target for generating extension module.

Previously we would create the extension module as a post-build
step of creating liblldb.  As part of this process, we created
symlinks and did other stuff.

This had several longstanding issues related to target
dependencies, such as not re-creating the symlink if liblldb.dll
failed to link, or if the build was Ctrl+C'ed from.

Then, the script that creates the symlinks began to grow to
include other things, such as argdumper, and it would try to
create symlinks before it had finished building the targets it
needed to symlink to.

This patches addresses all of these problems by creating an
explicit target for the script to run, and making it have a
dependency on all the targets it needs to create symlinks from/to.

llvm-svn: 229569
lldb/CMakeLists.txt
lldb/source/CMakeLists.txt