[CMake][libunwind] Fix the -target and -gcc-toolchain flag handling
authorPetr Hosek <phosek@chromium.org>
Sun, 16 Apr 2017 06:08:44 +0000 (06:08 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 16 Apr 2017 06:08:44 +0000 (06:08 +0000)
commit9ad496b2c8b9c2c41dc03cbc3e7529fc02a310ef
treeb9c055a5cf8b8dadef713aa4e4ab38292d551c7b
parentd3a3fb839132828d1001c754a34216634e501fe5
[CMake][libunwind] 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. The compile
flag handling had a typo which caused these flag not to be properly
include. 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/D32071

llvm-svn: 300419
libunwind/CMakeLists.txt
libunwind/cmake/Modules/HandleCompilerRT.cmake