summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* [asan] adding support of 32-bit address sanitizer for MIPSDaniel Sanders2014-06-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The patch supports both the clang cross-compiler and native compiler Patch by Kumar Sukhani <Kumar.Sukhani@imgtec.com> Test Plan: Kumar had the following asan test results when compiled on a MIPS board: Expected Passes : 96 Expected Failures : 2 Unsupported Tests : 84 Unexpected Passes : 4 Unexpected Failures: 19 The list of unexpected failures can be found in the review. Reviewers: kcc, petarj, dsanders Reviewed By: kcc Subscribers: farazs, kcc, llvm-commits Differential Revision: http://reviews.llvm.org/D4208 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211587 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Android build after r210053Greg Fitzgerald2014-06-031-13/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210069 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup Android build and provide better diagnosticsGreg Fitzgerald2014-06-021-15/+24
| | | | | | | | | | No longer need to set ANDROID if COMPILER_RT_TEST_TARGET_TRIPLE is arm-linux-androideabi. No need to set ANDROID_COMMON_FLAGS. These flags are already in CMAKE_CXX_FLAGS which are used in try_compile(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210053 91177308-0d34-0410-b5e6-96231b3b80d8
* light up sanitizers for ARM, take 2Greg Fitzgerald2014-05-291-6/+10
| | | | | | Differential Revision: http://reviews.llvm.org/D3794 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209856 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "light up sanitizers for ARM"Greg Fitzgerald2014-05-291-6/+6
| | | | | | | | This commit broke the Windows build, where CMAKE_C_COMPILER can compile and link with -march=armv7-a but the just-built-clang cannot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209851 91177308-0d34-0410-b5e6-96231b3b80d8
* light up sanitizers for ARMGreg Fitzgerald2014-05-291-6/+6
| | | | | | | | | | | | You can expect the sanitizers to be built under any of the following conditions: 1) CMAKE_C_COMPILER is GCC built to cross-compile to ARM 2) CMAKE_C_COMPILER is Clang built to cross-compile to ARM (ARM is default target) 3) CMAKE_C_COMPILER is Clang and CMAKE_C_FLAGS contains -target and --sysroot Differential Revision: http://reviews.llvm.org/D3794 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209835 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan/Win] Use clang rather than clang-cl by default for lit tests. Make ↵Timur Iskhodzhanov2014-05-281-8/+2
| | | | | | | | Windows-only tests explicitly use clang-cl. Reviewed at http://reviews.llvm.org/D3893 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209719 91177308-0d34-0410-b5e6-96231b3b80d8
* XFAIL ptrace test on armGreg Fitzgerald2014-05-201-0/+6
| | | | | | | | | | | | | | | | | | The patch adds better target_triple and target_arch defaults for lit tests, which allows us to XFAIL tests based on architecture. Was: target_triple = LLVM_DEFAULT_TARGET_TRIPLE target_arch = HOST_ARCH Now: target_triple = COMPILER_RT_TEST_TARGET_TRIPLE , otherwise LLVM_DEFAULT_TARGET_TRIPLE target_arch = first item in COMPILER_RT_TEST_TARGET_TRIPLE Differential Revision: http://reviews.llvm.org/D3855 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209256 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan tests] Add the first Windows-only lit testTimur Iskhodzhanov2014-05-141-0/+2
| | | | | | Reviewed at http://reviews.llvm.org/D3767 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208802 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable CAN_EXECUTE_TESTS if an EMULATOR is providedGreg Fitzgerald2014-05-141-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208745 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable sanitizer tests (check-sanitizer, check-asan) on WindowsTimur Iskhodzhanov2014-05-131-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208701 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Fix standalone build after r208526Alexey Samsonov2014-05-121-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208629 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan tests] Use clang-cl to build tests on WindowsTimur Iskhodzhanov2014-05-121-2/+11
| | | | | | Reviewed at http://reviews.llvm.org/D3680 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208526 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow the user to override the compiler used for testingGreg Fitzgerald2014-04-011-3/+7
| | | | | | Change-Id: I76d4708a26f17185efb746f4b836aa32f3f8a44f git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205362 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Optional support for dynamic ASan runtime on Linux.Alexey Samsonov2014-04-011-0/+2
| | | | | | | 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
* InstrProf: Add simple compiler-rt testDuncan P. N. Exon Smith2014-03-311-0/+1
| | | | | | | | | | 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
* [sanitizer] Test that we can compile C++ code on the target platform.Evgeniy Stepanov2014-03-311-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205184 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r204877 "Allow the user to override the compiler used for testing"Greg Fitzgerald2014-03-271-7/+3
| | | | | | | | 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
* Allow the user to override the compiler used for testingGreg Fitzgerald2014-03-261-3/+7
| | | | | | Change-Id: Ida62c2d85f541260f505c3dbd5d71a4b2a6004f4 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204877 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Build compiler-rt libraries with -std=c++11Alexey Samsonov2014-03-181-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204145 91177308-0d34-0410-b5e6-96231b3b80d8
* Move Android ucontext.h out of third_party.Evgeniy Stepanov2014-03-181-1/+1
| | | | | | | | 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
* [CMake] Add trailing newline to test source file to make sure -Wnewline-eof ↵Alexey Samsonov2014-03-141-1/+1
| | | | | | doesn't fire git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203911 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] More fixes for Windows buildAlexey Samsonov2014-03-131-8/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203798 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Attempt to fix standalone compiler-rt build on WindowsAlexey Samsonov2014-03-131-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203789 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Use /W3 instead of -Wall on Windows. Remove add_definitions abuse.Alexey Samsonov2014-03-131-3/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203786 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov2014-03-131-15/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203773 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Build compiler-rt libraries with -WallAlexey Samsonov2014-03-061-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203113 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Minor fix to llvm-config discoveryAlexey Samsonov2014-03-051-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202954 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Fix PR18987: discard /MD flag if we're adding /MTAlexey Samsonov2014-02-281-3/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202472 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Install asan_device_setup to bin/ when targetting Android.Evgeniy Stepanov2014-02-271-0/+3
| | | | | | | | | | | 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
* Add accidentally removed -DAlexey Samsonov2014-02-271-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202355 91177308-0d34-0410-b5e6-96231b3b80d8
* Move COMPILER_RT_HAS_FUNC check from r202303 to config-ix.cmakeAlexey Samsonov2014-02-271-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202353 91177308-0d34-0410-b5e6-96231b3b80d8
* Append -D__func__=__FUNCTION__ to SANITIZER_COMMON_CFLAGSReid Kleckner2014-02-261-0/+6
| | | | | | | | | 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
* [CMake] Introduce cmake_policy(CMP0022) for ↵NAKAMURA Takumi2014-02-261-0/+14
| | | | | | | | | | | | 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
* [CMake] Better support for COMPILER_RT_ENABLE_WERROR. Make sure compiler-rt ↵Alexey Samsonov2014-02-241-2/+3
| | | | | | 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
* [CMake] Introduce COMPILER_RT_ENABLE_WERROR optionAlexey Samsonov2014-02-241-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202021 91177308-0d34-0410-b5e6-96231b3b80d8
* Add rudimentary support for running compiler-rt lit tests with GCCAlexey Samsonov2014-02-191-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201680 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Use host compiler to run lit tests in standalone modeAlexey Samsonov2014-02-191-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201674 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Use host compiler to build unittests in standalone modeAlexey Samsonov2014-02-191-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201672 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Introduce COMPILER_RT_INCLUDE_TESTS optionAlexey Samsonov2014-02-191-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201666 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Add the way to run tests in standalone build.Alexey Samsonov2014-02-191-10/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [CMake] Rudimentary support for standalone CompilerRT build system.Alexey Samsonov2014-02-191-11/+45
| | | | | | | | | 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
* [CMake] Rename several variablesAlexey Samsonov2014-02-181-5/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201575 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Don't build ASan for iossim if -mmacosx-version-min is specifiedAlexey Samsonov2014-02-181-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201566 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Simplify setting compile flag disabling RTTIAlexey Samsonov2014-02-181-17/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Simplify code for detecting/setting compiler flagsAlexey Samsonov2014-02-181-58/+47
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201543 91177308-0d34-0410-b5e6-96231b3b80d8
* Move TSan lit-tests under test/tsanAlexey Samsonov2014-02-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201414 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ASan lit-tests under test/asanAlexey Samsonov2014-02-141-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201413 91177308-0d34-0410-b5e6-96231b3b80d8
* Move MSan lit-tests under test/msanAlexey Samsonov2014-02-141-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201412 91177308-0d34-0410-b5e6-96231b3b80d8
* Move LSan test suite under test/Alexey Samsonov2014-02-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201408 91177308-0d34-0410-b5e6-96231b3b80d8