Add support for building the ASan instrumentation unit tests with the
commit984f6cf119e26ec25463d58235d613bfea114127
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 Jun 2012 09:01:24 +0000 (27 09:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 Jun 2012 09:01:24 +0000 (27 09:01 +0000)
treef045431572bd338ff5cb457918d0e69384d6bbaa
parentfc6c80e9402a8798e6426df7df3a867d541ca705
Add support for building the ASan instrumentation unit tests with the
just-built Clang binary, and linking them against the just-built ASan
runtime.

This is *very* brittle. I expect it will require tweaking, and I've
pro-actively disabled it on non-Unix builds and on cross-builds.

It is also currently missing dependency edges on GoogleTest header files
and a few other corner cases, but those can be fixed. This is the major
milestone of a mini-bootstrap-like build of the unittest.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159255 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
lib/asan/CMakeLists.txt
lib/asan/tests/CMakeLists.txt