summaryrefslogtreecommitdiffstats
path: root/libcxxabi/cmake/Modules/HandleCompilerRT.cmake
Commit message (Collapse)AuthorAgeFilesLines
* [CMake] Passthrough CFLAGS when checking the compiler-rt pathPetr Hosek2018-11-141-0/+3
| | | | | | | | | | This is needed when cross-compiling for a different target since CFLAGS may contain additional flags like -resource-dir which change the location in which compiler-rt builtins are found. Differential Revision: https://reviews.llvm.org/D54371 llvm-svn: 346820
* [CMake] Convert paths to the right form in standalone builds on WindowsMartin Storsjo2018-06-201-0/+3
| | | | | | | | | | | | | The paths output from llvm-config --cmakedir and from clang --print-libgcc-file-name can contain backslashes, while CMake can't handle the paths in this form. This matches what compiler-rt already does (since SVN r203789 and r293195). Differential Revision: https://reviews.llvm.org/D48355 llvm-svn: 335171
* [CMake][libcxxabi] Fix the -target and -gcc-toolchain flag handlingPetr Hosek2017-04-161-1/+1
| | | | | | | | | | | | CMake has the problem with the single dash variant because of the space, so use the double dash with equal sign version. These flag need to be included in compile flags to propagate correctly. We also don't have to pass the target triple when checking for compiler-rt since that flag is already included in compile flags now. Differential Revision: https://reviews.llvm.org/D32069 llvm-svn: 300418
* [CMake][libcxxabi] Use -nodefaultlibs for CMake checksPetr Hosek2017-04-071-0/+58
Since libc++abi is built with -nodefaultlibs, we should be using this option even for CMake checks to avoid any inconsistency and also to avoid dependency on a working C++ standard library just for the setting up the build itself. The implementation is largely similar to the one used by libc++. Differential Revision: https://reviews.llvm.org/D31639 llvm-svn: 299797
OpenPOWER on IntegriCloud