llvm-project/compiler-rt/lib/esan
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
..
CMakeLists.txt [CMake] Connect Compiler-RT targets to LLVM Runtimes directory 2016-08-26 20:52:22 +00:00
cache_frag.cpp [esan] Add __esan_report for mid-run data 2016-07-09 04:13:25 +00:00
cache_frag.h [esan] Add __esan_report for mid-run data 2016-07-09 04:13:25 +00:00
esan.cpp [esan|wset] Fix flaky sampling tests 2016-07-19 05:06:48 +00:00
esan.h [esan|wset] Fix flaky sampling tests 2016-07-19 05:06:48 +00:00
esan.syms.extra [esan] Add compilation unit init/exit routines. 2016-05-24 22:22:20 +00:00
esan_circular_buffer.h [esan|wset] Add 8-level working set snapshot accumulation 2016-06-03 16:27:50 +00:00
esan_flags.cpp [esan] Add custom flag support 2016-05-20 19:26:52 +00:00
esan_flags.h [esan] Add custom flag support 2016-05-20 19:26:52 +00:00
esan_flags.inc [esan|cfrag] Compute the struct field access difference ratio 2016-06-03 20:48:17 +00:00
esan_hashtable.h [esan] Add iterator to esan's generic hashtable 2016-08-08 17:37:19 +00:00
esan_interceptors.cpp [esan|wset] Ensure SIGSEGV is not blocked 2016-07-06 21:04:48 +00:00
esan_interface.cpp [esan|wset] Fix flaky sampling tests 2016-07-19 05:06:48 +00:00
esan_interface_internal.h [esan] Specify which tool via a global variable 2016-06-03 19:40:08 +00:00
esan_linux.cpp [esan] Add handling of large stack size rlimits 2016-05-28 00:25:16 +00:00
esan_shadow.h [esan] Add handling of large stack size rlimits 2016-05-28 00:25:16 +00:00
esan_sideline.h [esan] Add sideline itimer support 2016-06-03 16:14:07 +00:00
esan_sideline_linux.cpp [esan] Fix sideline thread flaky assert 2016-07-19 05:03:38 +00:00
working_set.cpp [esan|wset] Fix flaky sampling tests 2016-07-19 05:06:48 +00:00
working_set.h [esan|wset] Fix flaky sampling tests 2016-07-19 05:06:48 +00:00
working_set_posix.cpp [esan|wset] Ensure SIGSEGV is not blocked 2016-07-06 21:04:48 +00:00