History log of /external/compiler-rt/lib/asan/CMakeLists.txt
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5d71de26cedae3dafc17449fe0182045c0bd20e8 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
/external/compiler-rt/lib/asan/CMakeLists.txt
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/CMakeLists.txt
3125de9e3048bc505344053d3518cccab7ee6897 17-Nov-2013 Alexey Samsonov <samsonov@google.com> CMake: don't build sanitizer runtimes on 64-bit Windows (it's unsupported for now)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
8c6e4855ac47415f1f2863690860f24213638cb5 14-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Introduce a top-level target to collect all ASan runtimes and deps

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
d2e32e323cca83b666ecd124ebfd1720232d0928 13-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Remove the stale dependency on the Foundation framework from the dynamic ASan runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
49496747758bf44163768ce3e07e40c8f95ccba9 07-Nov-2013 Alexander Potapenko <glider@google.com> [ASan] Add CMake configs for libclang_rt.asan_iossim_dynamic.dylib

CMake changes to build the ASan runtime for the iOS simulator. This is a universal library targeting the same architectures as the OSX ASan runtime does, thus the iossim version can't live in the same universal libclang_rt.asan_osx_dynamic.dylib

The difference between the OSX and iossim builds is in the -mios-simulator-version-min and -ios_simulator_version_min flags that tell Clang to compile and link iossim code.

The iossim runtime can only be built on a machine with both Xcode and the iOS Simulator SDK installed. If xcodebuild -version -sdk iphonesimulator Path returns a nonempty path, it is used when compiling and linking the iossim runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
c1a1ed62228288155459d39194995a36aca4a8a6 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Overhaul the symbolizer interface.

This moves away from creating the symbolizer object and initializing the
external symbolizer as separate steps. Those steps now always take place
together.

Sanitizers with a legacy requirement to specify their own symbolizer path
should use InitSymbolizer to initialize the symbolizer with the desired
path, and GetSymbolizer to access the symbolizer. Sanitizers with no
such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for
initialization.

The symbolizer interface has been made thread-safe (as far as I can
tell) by protecting its member functions with mutexes.

Finally, the symbolizer interface no longer relies on weak externals, the
introduction of which was probably a mistake on my part.

Differential Revision: http://llvm-reviews.chandlerc.com/D1985

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
9b5f95f5fe1a24be4dfb7436b64cb0e0f8c00535 20-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Runtime support for the indirect function call checker.

Differential Revision: http://llvm-reviews.chandlerc.com/D1339

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193060 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
05fa3808f6ac96023cdf583a1a1b7220e5b451b8 16-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Split ASan unit tests into two different binaries:

(1) instrumented, i.e. compiled and linked with -fsanitize=address
(2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
544bdfb538d082109194952ce66907b917eb8d51 28-Aug-2013 Alexey Samsonov <samsonov@google.com> Generate list of symbols exported from sanitizer runtimes only on 64-bit Unix

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189454 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
e5fa243b20bf5e6a097bc58cbedfe6bed8a9b7d1 27-Aug-2013 Alexey Samsonov <samsonov@google.com> Properly generate lists of exported symbols for sanitizer runtimes

This change adds a Python script that is invoked for
the just-built sanitizer runtime to generate the list of exported symbols
passed to the linker. By default, it contains interceptors and sanitizer
interface functions, but can be extended with tool-specific lists.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189356 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
c1f1af715b204a7be6e31754169c358edb392bb2 27-Aug-2013 Hans Wennborg <hans@hanshq.net> cmake: fix the compiler-rt build with MSVC

This sets flags and excludes things that aren't working with MSVC yet,
allowing us to build the ASan runtime as part of the cmake build.

Differential Revision: http://llvm-reviews.chandlerc.com/D1525

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
c3b30b378741f3ec0f4d615ef172b68e1cf97e39 22-Jun-2013 Alexey Samsonov <samsonov@google.com> Add cmake rules for building LSan common on Mac OS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184639 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
b957d9f20c934ac1af70353db6bc994490d7ea0e 07-Jun-2013 Alexey Samsonov <samsonov@google.com> Drop support for 32-bit PowerPC in sanitizer tools.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
975a3294d9baf6bbbcfdb3c3a0e0a24714cde7cb 22-May-2013 Alexey Samsonov <samsonov@google.com> Revert r182465 and add lsan-common library to makefile-based build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182470 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
b5433dd977c6b528b7e0d83fa1fc45d6503a1226 22-May-2013 Alexey Samsonov <samsonov@google.com> [ASan] Temporary remove leak checking from ASan, while we don't have makefile-based build for LSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
9bdf7802d403b53baee3433ddddc220f457e039c 21-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Change CMakeLists to build the common LSan module for ASan.
Also, define CAN_SANITIZE_LEAKS.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
c1caacee4245f4511b52a697b2ae300a1c53ddef 21-May-2013 Alexey Samsonov <samsonov@google.com> [ASan] create default (empty) ASan blacklist file in resource directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
0c547de62dc0852a03fae2d868fa571e7f5512b3 17-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate library

Introduce a new object library, RTSanitizerCommonLibc, which will contain
the subset of sanitizer_common with libc dependencies. RTSanitizerCommon
contains the remainder of sanitizer_common, and is intended to have no
libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting
with sanitizer_common.cc, whose libc-dependent portion is moved to
sanitizer_common_libcdep.cc, the first member of the new library.

This split affects the CMake build only. The makefile build continues
to produce the full sanitizer_common library.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
b1971ca4a3057916ca90a733c672a08127d5fe67 04-Apr-2013 Kostya Serebryany <kcc@google.com> [asan] nuke the old unused allocator code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
a06fe9183fbffb78798a444da9bc3040fdd444aa 23-Mar-2013 Richard Smith <richard-llvm@metafoo.co.uk> Build and install .syms files alongside sanitizer runtimes. These are used to
specify which symbols are exported to DSOs when the sanitizer is statically
linked into a binary.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
def1be9b7ef4091ce465c0fbfb26cdb52128ade8 21-Mar-2013 Alexey Samsonov <samsonov@google.com> [ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
a7e5db966299a50c0e68cf9d35e1130b6c024c94 13-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
33934fff43c5813394fe21e68b8d82b672013465 22-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] move the .preinit_array hack into a separate file (added used attribute)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
7c2a3bbabc7d3bcc66ad7a076bed9a4b86a3626d 20-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h
Now that we have only one dependency on asan_intercepted_functions.h, we can unite that code with the interceptors declarations in asan_interceptors.cc and get rid of asan_intercepted_functions.h


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175631 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
69563986ca570ce750111a82264d51ddbf4107ba 05-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Delete the code related to static runtime on OS X.
Nuke lib/interception/mach_override.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
eba4803ab538007a63d149faf92afc00f73c5128 22-Jan-2013 Alexander Potapenko <glider@google.com> [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime.
This CL drastically simplifies the way we're hooking the memory allocation routines in ASan on Mac by using dylib interposition to replace the main malloc_zone_* functions. This allows us to avoid replacing the default CFAllocator and drop the CF dependency at all.

Committing this patch will result in the static runtime being broken. A follow-up CL will switch ASan to use the dynamic runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
5e5be21cc6165ae16a3002f0c3bace10c493491b 22-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: disable flexible mapping and offset on Android. It doesn't work for dynamic ASan runtime there

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173132 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
d0b1d4605b05b744480f0ca54f996578ca216cf8 21-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake: generalize checking for target availability and add initial support for PowerPC native arch. With this patch, building LLVM on PowerPC native arch produces a working ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173044 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
a0a69a4129fc963702b7f96a00838f104a6b3636 21-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: use dynamic lookup when building dynamic ASan runtime on Mac, because shadow mapping and offset are defined in the instrumented modules instead of runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173015 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
2aed04090856609cdf510b69dd0a1d81b3980b5f 21-Jan-2013 Alexey Samsonov <samsonov@google.com> ASan: build runtime library with ASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 as shadow mapping/offset are always emitted by the LLVM backend now

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
2aad7c137771f6f7a734390e09c94a13120d054a 21-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake: add functions creating universal runtime libraries for several architectures on OS X and use them in ASan and UBSan build rules

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173011 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
43b4b9c18a7a588a60b9d976391ad8e2f5f9a309 18-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake: Generalize build rules for different arches for sanitizer_common, asan, ubsan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
2f3aef010fdeadfe7ec995dc534544acb5f357fb 18-Jan-2013 Alexey Samsonov <samsonov@google.com> CMake variables renaming: X86_64->x86_64 I386->i386

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
d7d7b5f39cf5bbc36403afb0a94d473519c7ab78 27-Dec-2012 Alexey Samsonov <samsonov@google.com> Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can produce working binaries and use it in build rules for sanitizers tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
2679f1904dc5d5eb2ce82014116764c5f5131a2b 10-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] move FakeStack into a separate file

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169734 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
8b0a7ce34660ef5b02d21dddb7d45d502539e9fd 10-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] introduce asan_allocator2.cc, which will have the replacement for asan allocator (now, just a bit of boilerplate)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
34fc56c43f60be0b85a0e3ce30658fd98951f0b8 11-Sep-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> CMake build rules for ASan Android runtime and tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163613 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
70a7095e37289746fd20595457d517faf66dc6a4 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [compiler-rt] Install support for CMake build of compiler-rt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163607 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
4a78b1e4685f34aa8a53287c51e4215880e554e0 05-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] Hack ASan lit config to allow running lit on tests manually

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
0f7d4a4ad69ad20053d8b78c611853e778bd465a 05-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the rest of flags/defs from old Makefile to CMake

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163204 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
60ab090deed8213613643729a7921ef0915ac704 29-Aug-2012 Chandler Carruth <chandlerc@gmail.com> Some flag cleanup for the sanitizer runtimes.

This hoists most of the CFLAGS into a common variable. It also adds
detection for -Wno-c99-extensions and uses it to silence a pile of
warnings.

Finally, it switches to the proper flag -rdynamic.

With this, the cmake build is warning free on my bootstrap Linux build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
283c296b64bc55deec9698260b3427a9b050a925 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
b10027729a3b809469f6b6ad40407ca453d6f54a 27-Aug-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> CMake build rules for ASan/Android runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162675 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
1e2525d0ec9ac64e583b57316ea30cecce591fb1 24-Aug-2012 Alexander Potapenko <glider@google.com> Add add_clang_runtime_shared_library() CMake function and use it to put the shared ASan runtime in the appropriate place.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
0ef531054fc25c11e372cbab1384f10954984219 17-Aug-2012 Alexander Potapenko <glider@google.com> Commit the source and CMake changes that will allow to build ASan runtime
as a shared library on Mac OS. This will provide an alternative to
mach_override.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
fe51abb4949ad9976168bf53edb52c20016b9a0d 10-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] CMake support for building ASan runtime as a universal binary on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161665 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
f7c1d18183d2dfbd02864cf47b3239d6a5d717c0 09-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] Move error reports away from ASan allocator. Add new source file to CMakeLists as well

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161569 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
7274ff82fab3b167514e2aba81aa775d9fd73ca8 31-Jul-2012 Alexey Samsonov <samsonov@google.com> First tiny move towards integrating AddressSanitizer regressions test into LLVM lit-based testing infrastructure.
The goal is to be able to run ASan tests by simply running "make check-asan" command from CMake build tree:
* tests should use fresh clang binary from current build tree.
* tests should use the same RUN-lines syntax as llvm/clang reg tests.

Next steps:
- restricting tests to machines where target is equal to host, i.e. where we can produce working binaries.
- moving AddressSanitizer unit tests to lit as well.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
4d57f44ae53d766d77fd21ceee5f0b7e56429b04 25-Jul-2012 Alexey Samsonov <samsonov@google.com> cmake for compiler-rt: add a function to set output dirs for compiler runtimes equal to directory used by Clang driver. Use it for ASan runtime. Also, make sure that ASan unit tests depend on the ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
b0af63965aeab26c463dd761f5b2b9cf8560065b 24-Jul-2012 Alexey Samsonov <samsonov@google.com> Revert r160669 (except for compile flag updates)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
a43a62a25c55b811052249380cb6d2f7d020a8fc 24-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] hacking cmake build: after generating asan runtime, copy it to the Clang lib directory where Clang driver expects to find it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160669 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
62f294020ce5d60dc51883e7708a56247c366d14 02-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
984f6cf119e26ec25463d58235d613bfea114127 27-Jun-2012 Chandler Carruth <chandlerc@gmail.com> 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
/external/compiler-rt/lib/asan/CMakeLists.txt
821f21b7cdd0bcc91102f08c8ee0773fd9273046 25-Jun-2012 Chandler Carruth <chandlerc@gmail.com> Cleanup the handling of CFLAGS even more in the cmake build for ASan.
Add the initial support for building ASan tests.

The first change here is to try to get the CFLAGS to more closely match
those used by the old Makefile. There are probably still goofs here,
ASan folks, your review would be appreciated.

The second big change is to add support for building both
instrumentation based an non-instrumentation based unittests for ASan.
They are built a bit differently from how the old makefiles managed
things. Specifically, there are two binaries, one for the
non-instrumented case, and one for the instrumented case.

Also, the instrumented unit tests rely on the host compiler supporting
AddressSanitizer's intrumentation pass. This is kind-of gross, but
I don't know of a better way yet. I've mailed llvmdev to discuss this
issue.

One big caveat is that the detection logic currently doesn't work. I've
commented it out temporarily as I'd like to get feedback from the ASan
developers, etc.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159134 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
a765ffcef39dc37bd6d7e597286fd76fbeb1b9fa 25-Jun-2012 Chandler Carruth <chandlerc@gmail.com> Another big step toward a viable CMake build system for CompilerRT,
ASan, and friends.

This explicitly switches the CompilerRT CMake build to require CMake
version 2.8.8 or newer which provides first-class support for "object"
libraries which consist of a pile of '.o' files -- exactly what is
desired for composing runtime libraries. I've gone ahead and switched to
using this.

I've also added the interception library which I missed initially. And
I've added proper dependencies between the various libraries. With this,
I'm able to build archives for asan that appear to contain all of the
necessary .o files.

The final tweak here is to start setting up the compile flags and macro
defines expected by ASan and its helper libraries. These may not be
entirely correct currently, they're based loosely on my reading of the
old Makefiles. However, they can be tweaked more easily now that they're
wired up properly.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159129 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
479d47f739a9f36cbb3cf2bfdbd01c62a7b3128f 20-Jun-2012 Chandler Carruth <chandlerc@gmail.com> Resuming work on the compiler-rt CMake build at long long last. In order
to get it working again, two changes were needed:

- I had to give up on glob-based file expansion. This just isn't well
supported by CMake, and until we convince upstream there of its value,
it's not worth dealing with the pain.
- Add the common library as otherwise even ASan won't build.

This now builds again, although the "correctness" of it is a touch
debatable. ;] Specifically, there is no merging of the common runtime
library with the asan runtime library into a single archive file. I'm
not really sure what the best technique is for that, and it may be
influenced by the ongoing discussion about how best to link runtime
libraries.

Note of course that this is still very much WIP. It doesn't entirely
work yet, and remains disabled by the LLVM projects/CMakeLists.txt until
it is in a working state.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158811 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/CMakeLists.txt
d51e0a05b4aefc85c356c9bddd8a24efc77721d9 05-Apr-2012 Chandler Carruth <chandlerc@gmail.com> Initial, very rough cut at a new CMake build system for compiler-rt.
Some high-level notes:

1) An explicit goal is to support building compiler-rt as a subproject
build, checked out into the projects/compiler-rt directory. There are
many other possible ways of building the code here, but this is
optimized for development on LLVM/Clang/compiler-rt, and incremental
trial and testing of the toolchain.
2) The current support is targeted at Linux. I would love to see this
generalized to other platforms, but for the sake of simplicity in
testing, I'm focusing here first.

Much of this patch was paired with Manuel, and I credit him with the
majority of the work here.

Some important caveats that I'll be working on in subsequent patches:

1) This uses the host compiler rather than using the just-built-clang.
2) Currently only x86 is supported.
3) Currently, none of the tests are built or run.
4) Uses CMake's builtin globbing which doesn't update correctly.
5) This is still turned off from LLVM's CMake build until these issues
are addressed

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