summaryrefslogtreecommitdiff
path: root/cmake/Modules/BuiltinTests.cmake
AgeCommit message (Collapse)Author
2016-09-08Really fix warnings about passing -std=gnu99 to MSVCReid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@280958 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-25[builtins] Make sure builtin compile tests respect CMAKE_C_COMPILER_TARGETFrancis Ricci
Summary: Since we generate the compiler invocation on our own, we need to manually add -target if CMAKE_C_COMPILER_TARGET has been specified. Reviewers: compnerd, beanz Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23823 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@279747 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-12[CMake] If the compiler supports _Atomic include atomic.c in builtins librariesChris Bieneman
This fixes a long-standing TODO by implementing a compiler check for supporting the _Atomic keyword. If the _Atomic keyword is supported by the compiler we should include it in the builtin library sources. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@278454 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-01[CMake] Don't trust compiler error code, also check for errorsChris Bieneman
Summary: rnk reported that MSVC ignores unknown flags and still returns 0. This should cause unknown flags to be an error during the compiler check. Reviewers: rnk Subscribers: brad.king, llvm-commits Differential Revision: https://reviews.llvm.org/D23030 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277377 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-11[CMake] Cache check results and avoid duplicate checksChris Bieneman
This caches the result of builtin_check_c_compiler_flag, and removes a duplicate check for C99 flag support. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269230 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-03[CMake] NFC. Add support for testing the compiler without testing the linkerChris Bieneman
Summary: One of the big limitations we have in the compiler-rt build system today is that we cannot bootstrap building the builtins because you need a fully functional toolchain to pass CMake's tests. This change adds support for compile only tests. It is NFC because nothing is using the compile-only tests yet. I believe this is the last separable part of D16653. Reviewers: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19692 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@268427 91177308-0d34-0410-b5e6-96231b3b80d8