Significantly change the way we build ASan unittests in CMake
authorAlexey Samsonov <samsonov@google.com>
Wed, 19 Dec 2012 12:33:39 +0000 (12:33 +0000)
committerAlexey Samsonov <samsonov@google.com>
Wed, 19 Dec 2012 12:33:39 +0000 (12:33 +0000)
commitca7fcf235488b5628ac35167f7c9dd9cdaad89a9
tree4e3853c64d17a2eb01864f789266f3918cb29011
parent00e7a119047e6ddb80f3a2dec50ad8c4e5f0e139
Significantly change the way we build ASan unittests in CMake
build tree. Now just-built Clang is used to:
  1) compile instrumented sources (as before);
  2) compile non-instrumented sources;
  3) compile our own instrumented version of googletest;
  4) link it all together using -fsanitize=address flag
     (instead of trying to copy linker behavior in
      CMake build rules).

This makes ASan unittests pretty much self-consistent
and independent of other LLVM libraries.

llvm-svn: 170541
compiler-rt/CMakeLists.txt
compiler-rt/cmake/Modules/CompilerRTCompile.cmake [new file with mode: 0644]
compiler-rt/cmake/Modules/CompilerRTUnittests.cmake [new file with mode: 0644]
compiler-rt/lib/asan/tests/CMakeLists.txt