llvm-project/compiler-rt/lib/dfsan
Chris Bieneman 21395f9839 [CMake] Connect Compiler-RT targets to LLVM Runtimes directory
This patch builds on LLVM r279776.

In this patch I've done some cleanup and abstracted three common steps runtime components have in their CMakeLists files, and added a fourth.

The three steps I abstract are:

(1) Add a top-level target (i.e asan, msan, ...)
(2) Set the target properties for sorting files in IDE generators
(3) Make the compiler-rt target depend on the top-level target

The new step is to check if a command named "runtime_register_component" is defined, and to call it with the component name.

The runtime_register_component command is defined in llvm/runtimes/CMakeLists.txt, and presently just adds the component to a list of sub-components, which later gets used to generate target mappings.

With this patch a new workflow for runtimes builds is supported. The new workflow when building runtimes from the LLVM runtimes directory is:

> cmake [...]
> ninja runtimes-configure
> ninja asan

The "runtimes-configure" target builds all the dependencies for configuring the runtimes projects, and runs CMake on the runtimes projects. Running the runtimes CMake generates a list of targets to bind into the top-level CMake so subsequent build invocations will have access to some of Compiler-RT's targets through the top-level build.

Note: This patch does exclude some top-level targets from compiler-rt libraries because they either don't install files (sanitizer_common), or don't have a cooresponding `check` target (stats).
llvm-svn: 279863
2016-08-26 20:52:22 +00:00
..
scripts Add api_list entries for the dfsan-based fuzzer 2015-05-06 22:41:34 +00:00
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt [CMake] Connect Compiler-RT targets to LLVM Runtimes directory 2016-08-26 20:52:22 +00:00
dfsan.cc dfsan: Enable 48-bit VMA support on aarch64 2016-08-25 17:07:43 +00:00
dfsan.h [compiler-rt] [dfsan] Unify aarch64 mapping 2015-11-27 12:43:33 +00:00
dfsan.syms.extra [dfsan] Add a syms file. 2013-08-29 22:49:00 +00:00
dfsan_custom.cc [compiler-rt] Apply modernize-use-nullptr fixes in sanitizers 2015-10-01 00:22:21 +00:00
dfsan_flags.inc [Sanitizer] Change the runtime flag representation. 2015-01-07 00:38:00 +00:00
dfsan_interceptors.cc [DFSan] Don't include public headers in dfsan runtime code 2013-11-17 09:41:47 +00:00
dfsan_platform.h dfsan: Enable 48-bit VMA support on aarch64 2016-08-25 17:07:43 +00:00
done_abilist.txt [sanitizer-coverage] add __sanitizer_cov_trace_cmp[1248] to the sanitizer-coverage interface 2016-08-18 01:23:27 +00:00
libc_ubuntu1404_abilist.txt [dfsan] Upgrade ABI list to Ubuntu 14.04. 2014-11-05 17:21:06 +00:00