summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2014-04-01[ASan] Optional support for dynamic ASan runtime on Linux.Alexey Samsonov
Based on http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205308 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31InstrProf: Add simple compiler-rt testDuncan P. N. Exon Smith
Add the test infrastructure for testing lib/profile and a single test. This initial commit only enables the tests on Darwin, but they'll be enabled on Linux soon after. <rdar://problem/16458307> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205256 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31[sanitizer] Test that we can compile C++ code on the target platform.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205184 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27Revert r204877 "Allow the user to override the compiler used for testing"Greg Fitzgerald
Unbreak the sanitizer-x86_64-linux bot. Change-Id: Ie03f1b93fae45c54b142003731ff4f5d4f6b62f8 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204886 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26Allow the user to override the compiler used for testingGreg Fitzgerald
Change-Id: Ida62c2d85f541260f505c3dbd5d71a4b2a6004f4 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204877 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18[CMake] Build compiler-rt libraries with -std=c++11Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204145 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18Move Android ucontext.h out of third_party.Evgeniy Stepanov
Google is re-licensing this code under the standard dual license of compiler-rt. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204128 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-14[CMake] Add trailing newline to test source file to make sure -Wnewline-eof ↵Alexey Samsonov
doesn't fire git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203911 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13[CMake] More fixes for Windows buildAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203798 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13[CMake] Attempt to fix standalone compiler-rt build on WindowsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203789 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13[CMake] Use /W3 instead of -Wall on Windows. Remove add_definitions abuse.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203786 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13[CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203773 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-06[CMake] Build compiler-rt libraries with -WallAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203113 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-05[CMake] Minor fix to llvm-config discoveryAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202954 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28[CMake] Fix PR18987: discard /MD flag if we're adding /MTAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202472 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-27[asan] Install asan_device_setup to bin/ when targetting Android.Evgeniy Stepanov
asan_device_setup is a utility that prepares a device to run code built with ASan. Essentially, it installs ASan runtime library into the system. For this reason, it has to be at a predictable relative path from the runtime library itself. We also plan to distribute this utility, packaged with runtime library and maybe llvm-symbolizer, to the users. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202362 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-27Add accidentally removed -DAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202355 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-27Move COMPILER_RT_HAS_FUNC check from r202303 to config-ix.cmakeAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202353 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-26Append -D__func__=__FUNCTION__ to SANITIZER_COMMON_CFLAGSReid Kleckner
This way it gets picked up for all sanitizer libs, both sanitizer_common and asan. I believe those are the only libs that build with asan. There should be no need to set the __func__ definition inside clang_compile. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202303 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-26[CMake] Introduce cmake_policy(CMP0022) for ↵NAKAMURA Takumi
target_link_libraries(INTERFACE|PRIVATE). For now, use both keywords, INTERFACE and PRIVATE via the variable, - ${cmake_2_8_12_INTERFACE} - ${cmake_2_8_12_PRIVATE} They could be cleaned up when we introduce 2.8.12. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202239 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24[CMake] Better support for COMPILER_RT_ENABLE_WERROR. Make sure compiler-rt ↵Alexey Samsonov
libraries are build by 'make all' command git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202023 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-24[CMake] Introduce COMPILER_RT_ENABLE_WERROR optionAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202021 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19Add rudimentary support for running compiler-rt lit tests with GCCAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201680 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[CMake] Use host compiler to run lit tests in standalone modeAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201674 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[CMake] Use host compiler to build unittests in standalone modeAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201672 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[CMake] Introduce COMPILER_RT_INCLUDE_TESTS optionAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201666 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[CMake] Add the way to run tests in standalone build.Alexey Samsonov
1) Depend on llvm-config (configured in LLVM_CONFIG_PATH) to get necessary LLVM source/binary directories. 2) Add basic support for running lit tests (check-xsan commands). For now this "support" is far from what we want: * unit tests are not built currently. * lit tests use Clang/compiler-rt from LLVM build directory, not the host compiler or just-built compiler-rt libraries. We should make a choice on the way we intend ti run compiler-rt lit testsuite: a) use either Clang from LLVM build tree, or the host compiler. b) use either just-built runtimes, or the runtimes shipped with the host compiler. Using just-built runtimes is tricky - we have to know where to put them, so that Clang/GCC driver would pick them up (and not overwrite the existing runtimes). Using a host compiler instead of Clang from LLVM build tree will give us a chance to run lit tests under GCC (which already has support for several sanitizers). That is, I tend to make the following choice: if we're in a standalone compiler-rt build, use host compiler with its set of runtime libraries to run lit tests. This will effectively decouple "make compiler-rt" and "make check-compiler-rt" in a standalone build - the latter wouldn't invoke the former. Note that if we decide to fix LLVM/Clang/compiler-rt build system so that it would configure/build compiler-rt with just-built Clang (as we do in Makefile-based build), this will not be a problem - we can add a dependency to ensure that clang/compiler-rt are rebuilt before running compiler-rt tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201656 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[CMake] Rudimentary support for standalone CompilerRT build system.Alexey Samsonov
This change allows to build compiler-rt libraries separately from LLVM/Clang (path to LLVM build directory should be specified at configure time). Running tests is not yet supported. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201647 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18[CMake] Rename several variablesAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201575 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18[CMake] Don't build ASan for iossim if -mmacosx-version-min is specifiedAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201566 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18[CMake] Simplify setting compile flag disabling RTTIAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18[CMake] Simplify code for detecting/setting compiler flagsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201543 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move TSan lit-tests under test/tsanAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201414 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move ASan lit-tests under test/asanAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201413 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move MSan lit-tests under test/msanAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201412 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move LSan test suite under test/Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201408 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move DFSan test suite under test/Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201403 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move UBSan test suite under test/Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201401 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move shared configs for lit test suites to test/ and unittests/ directoriesAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201399 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14[asan] Android test runner for ASan lit tests.Evgeniy Stepanov
This change replaces 32- and 64- bit config.in-s with a single config template that is used to generate both 32 and 64 bits configs as well as the new arm-android config. Arm-android config is special because it can run tests on a remote device over adb (android debug bridge). We replace %clang with a script that run the compiler, upload the result to the device, and replaces it with another script. The second script runs the binary on the device and delivers stdout/stderr/exitcode back. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201394 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-12[Sanitizer] Build sanitizer_common with -Wframe-larger-than=512 flagAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201213 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-11Require CMake 2.8.12.1 or later on WindowsHans Wennborg
That version knows to use the /FS flag, which is needed for building lib/interception with VS2013. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201184 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-10Add a copy of missing <ucontext.h> for Android and enable ASan SEGV handler.Evgeniy Stepanov
This change adds a copy of <ucontext.h> for Android found in google-breakpad that is missing from the official NDK. ASan SEGV handler is still disabled by default and can be enabled with ASAN_OPTIONS=handle_segv. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201084 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-04[CMake] Fixup for r200753Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200761 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-04CMake: Enable -Werror for the -fno-function-sections checkJustin Bogner
If the -fno-function-sections flag isn't recognized, the compiler emits a warning. This isn't enough to cause the check to fail, so we enable -Werror as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200753 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-04[CMake] Check that compiler supports -fno-function-sections flagAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200746 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-03[sanitizer] Resubmit r200683: disable -ffunction-sections.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200686 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-03Revert r200683.Evgeniy Stepanov
-fno-function-sections is broken in Clang. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200684 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-03[sanitizer] Disable -ffunction-sections.Evgeniy Stepanov
It breaks when a binary is linked with --gc-sections: parts of sanitizer interface get thrown away and inaccessible from dlopen-ed libs. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200683 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31Remove /FS as it's auto-added by CMake 2.8.12.1; also, remove /wd4221 as ↵Timur Iskhodzhanov
4221 is a linker warning, not a compiler warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200564 91177308-0d34-0410-b5e6-96231b3b80d8