[CMake][libcxxabi] Fix the -target and -gcc-toolchain flag handling
authorPetr Hosek <phosek@chromium.org>
Sun, 16 Apr 2017 06:08:34 +0000 (06:08 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 16 Apr 2017 06:08:34 +0000 (06:08 +0000)
commitd3a3fb839132828d1001c754a34216634e501fe5
tree6c6bcb09a0419450f3be35200e22717c5eec1f25
parent2bbb4ecd94dff50cf9fd2ebc724685d80661bf2e
[CMake][libcxxabi] Fix the -target and -gcc-toolchain flag handling

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
libcxxabi/CMakeLists.txt
libcxxabi/cmake/Modules/HandleCompilerRT.cmake