[asan] Fix build dependency issues with ASan version list file.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 27 May 2015 22:38:01 +0000 (22:38 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 27 May 2015 22:38:01 +0000 (22:38 +0000)
commit1f1d9f27fd83103d3263b9a24be19fab3dd18b43
tree0154fff37f4e6ef8bbcdcab27f3b3cbe72528655
parentf3a6a67ffd3e847a6632a619c4f45a434dc42562
[asan] Fix build dependency issues with ASan version list file.

CMake pre-3.1 has a bug where a shared library depending on a custom_target
does not really depend on it.

This commit implements a hilariously ugly workaround for this problem, see
code comments for more details.

llvm-svn: 238367
compiler-rt/lib/asan/CMakeLists.txt