[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

git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@300419 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed