summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
AgeCommit message (Collapse)Author
2013-05-22Effectively revert r182453 - atomic.c may not be compiled if host compiler ↵Alexey Samsonov
doesn't understand _Atomic git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182478 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-22Add atomic.c to CMake build of compiler-rt to match r182420Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182453 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-20[lsan] CMakeLists and lit test configs for LSan.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182251 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-25Add basic support for building profile compiler-rt library in CMake build on ↵Alexey Samsonov
Darwin git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177870 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-19Support CMake build of profile runtime library on LinuxAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177382 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-22[msan] MSanDR: initial commit.Evgeniy Stepanov
MSanDR is a DynamoRio-based tool that handles uninstrumented libraries and dynamically generated code for MSan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175883 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-20CMake: Add add_compiler_rt_static_runtime function and use it to build ↵Alexey Samsonov
generic compiler-rt libraries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172977 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-18Fix a typo from r172289Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172830 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-18CMake: Generalize build rules for different arches for sanitizer_common, ↵Alexey Samsonov
asan, ubsan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172829 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-18CMake variables renaming: X86_64->x86_64 I386->i386Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172812 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-11[msan] MemorySanitizer runtime.Evgeniy Stepanov
Initial commit of the MemorySanitizer runtime library. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169858 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-16UBSan: enable CMake build on Darwin. Fix two failing tests and disable the ↵Alexey Samsonov
test which produces linker errors on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168169 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-09Add a runtime diagnostics library for Clang's -fcatch-undefined-behavior.Richard Smith
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165533 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-24[ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the ↵Alexey Samsonov
same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164486 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-19[ASan] Include ASan into CMake build only on Linux, Mac and WindowsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164224 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-19[TSan] Add tsan to cmake build of compiler-rt only on LinuxAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164217 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] Add initial support for buidling ThreadSanitizer runtime library with ↵Alexey Samsonov
CMake (currently the only supported platfrom is 64-bit Linux). This patch makes 'clang++ -fthread-sanitizer' work for both clang in the build tree and installed clang git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163789 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-11[compiler-rt] Install support for CMake build of compiler-rtAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163607 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-24Add add_clang_runtime_shared_library() CMake function and use it to put the ↵Alexander Potapenko
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
2012-08-22[ASan] fix CMake build: make sure that all ASan runtimes are built at ↵Alexey Samsonov
correct directory git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162353 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-10[ASan] CMake support for building ASan runtime as a universal binary on MacAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161665 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-25cmake for compiler-rt: add a function to set output dirs for compiler ↵Alexey Samsonov
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
2012-06-25Another big step toward a viable CMake build system for CompilerRT,Chandler Carruth
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
2012-06-22Reorder these things for clarity, and add -std=c99 to the compile flags.Chandler Carruth
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159032 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-20Resuming work on the compiler-rt CMake build at long long last. In orderChandler Carruth
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
2012-04-04Initial, very rough cut at a new CMake build system for compiler-rt.Chandler Carruth
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
2012-04-04Remove the old, and non-functional CMake build system from CompilerRT.Chandler Carruth
I cannot build any part of this successfully on either Linux or Darwin, and the replacement is worlds simpler by requiring that this be built as a subproject of LLVM. If this breaks you for any reason, please let me know, and let me know what your use case is. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@154059 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-29Update CMake build system with target arch source file lists.Edward O'Callaghan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@85448 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-14Update cmake files for arm support hooks.Edward O'Callaghan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@81760 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-09Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 ↵Edward O'Callaghan
compliant. Comment trailing endifs git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78537 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-05Start porting compiler-rt testsuit to Solaris with new build system. Fix ↵Edward O'Callaghan
some C++ style comments which are not allowed in ISO C90. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78143 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03Fix newlinew warning in floatundidf.c , Bulkout CMake system more, complete ↵Edward O'Callaghan
port to AuroraUX and Solaris. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@77958 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03A few CMake formating fixes for compiler-rt.Edward O'Callaghan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@77937 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03Initial import of CMake type build system. Just like the rest of llvm..Edward O'Callaghan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@77933 91177308-0d34-0410-b5e6-96231b3b80d8