summaryrefslogtreecommitdiff
path: root/lib/interception/CMakeLists.txt
Commit message (Collapse)AuthorAge
* [ASan] Add CMake configs for libclang_rt.asan_iossim_dynamic.dylib Alexander Potapenko2013-11-07
| | | | | | | | | | | 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
* [sanitizer] Fix wrong size of OFF_T on 32-bit platforms.Evgeniy Stepanov2013-02-07
| | | | | | | | This broke pread/pwrite interceptors when building without -D_FILE_OFFSET_BITS=64, and always on Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174593 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Delete the code related to static runtime on OS X.Alexander Potapenko2013-02-05
| | | | | | | | Nuke lib/interception/mach_override. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174383 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] include sanitizer_common headers when building interception libraryAlexey Samsonov2013-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173930 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Add add_compiler_rt_osx_object_library to create universal libraries ↵Alexey Samsonov2013-01-20
| | | | | | on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172979 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Generalize build rules for different arches for sanitizer_common, ↵Alexey Samsonov2013-01-18
| | | | | | asan, ubsan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172829 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: create AddCompilerRT module and implement convenience ↵Alexey Samsonov2013-01-18
| | | | | | add_compiler_rt_object_library function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172826 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake variables renaming: X86_64->x86_64 I386->i386Alexey Samsonov2013-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172812 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass -std=c99 when compiling mach_override.cAlexander Potapenko2012-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163717 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake build rules for ASan Android runtime and tests.Evgeniy Stepanov2012-09-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163613 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the ↵Alexey Samsonov2012-09-05
| | | | | | 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
* Some flag cleanup for the sanitizer runtimes.Chandler Carruth2012-08-29
| | | | | | | | | | | | 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
* CMake build rules for ASan/Android runtime.Evgeniy Stepanov2012-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162675 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] CMake support for building ASan runtime as a universal binary on MacAlexey Samsonov2012-08-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161665 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] cleanup CMake files for interception and sanitizer_common helper ↵Alexey Samsonov2012-08-08
| | | | | | libraries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161485 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] silence various warnings in cmake build of asan unit testsAlexey Samsonov2012-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159347 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup the handling of CFLAGS even more in the cmake build for ASan.Chandler Carruth2012-06-25
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Another big step toward a viable CMake build system for CompilerRT,Chandler Carruth2012-06-25
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